Skip to content

Commit c095e9d

Browse files
gsmetgunnarmorling
authored andcommitted
HV-1519 Exclude the test classes from the jqassistant rules
1 parent 31b3bce commit c095e9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jqassistant/rules.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
MATCH
1414
(class)-[:`EXTENDS`]->(supertype)
1515
WHERE
16-
NOT class.fqn =~ ".*\\.internal\\..*"
16+
NOT (class.fqn =~ "^org\\.hibernate\\.validator\\.test\\..*" OR class.fqn =~ "^org\\.hibernate\\.validator\\.testutils\\..*" OR class.fqn =~ ".*\\.internal\\..*")
1717
AND supertype.fqn =~ ".*\\.internal\\..*"
1818
RETURN
1919
class
2020
UNION ALL
2121
MATCH
2222
(class)-[:`IMPLEMENTS`]->(supertype)
2323
WHERE
24-
NOT class.fqn =~ ".*\\.internal\\..*"
24+
NOT (class.fqn =~ "^org\\.hibernate\\.validator\\.test\\..*" OR class.fqn =~ "^org\\.hibernate\\.validator\\.testutils\\..*" OR class.fqn =~ ".*\\.internal\\..*")
2525
AND supertype.fqn =~ ".*\\.internal\\..*"
2626
RETURN
2727
class
@@ -35,7 +35,7 @@
3535
MATCH
3636
(class)-[:`DECLARES`]->(method)-[:`RETURNS`]->(returntype)
3737
WHERE
38-
NOT class.fqn =~ ".*\\.internal\\..*"
38+
NOT (class.fqn =~ "^org\\.hibernate\\.validator\\.test\\..*" OR class.fqn =~ "^org\\.hibernate\\.validator\\.testutils\\..*" OR class.fqn =~ ".*\\.internal\\..*")
3939
AND (method.visibility="public" OR method.visibility="protected")
4040
AND returntype.fqn =~ ".*\\.internal\\..*"
4141
RETURN
@@ -46,7 +46,7 @@
4646
MATCH
4747
(class)-[:`DECLARES`]->(method)-[:`HAS`]->(parameter)-[:`OF_TYPE`]->(parametertype)
4848
WHERE
49-
NOT class.fqn =~ ".*\\.internal\\..*"
49+
NOT (class.fqn =~ "^org\\.hibernate\\.validator\\.test\\..*" OR class.fqn =~ "^org\\.hibernate\\.validator\\.testutils\\..*" OR class.fqn =~ ".*\\.internal\\..*")
5050
AND (method.visibility="public" OR method.visibility="protected")
5151
AND parametertype.fqn =~ ".*\\.internal\\..*"
5252
RETURN
@@ -60,7 +60,7 @@
6060
MATCH
6161
(class)-[:`DECLARES`]->(field)-[:`OF_TYPE`]->(fieldtype)
6262
WHERE
63-
NOT class.fqn =~ ".*\\.internal\\..*"
63+
NOT (class.fqn =~ "^org\\.hibernate\\.validator\\.test\\..*" OR class.fqn =~ "^org\\.hibernate\\.validator\\.testutils\\..*" OR class.fqn =~ ".*\\.internal\\..*")
6464
AND (field.visibility="public" OR field.visibility="protected")
6565
AND fieldtype.fqn =~ ".*\\.internal\\..*"
6666
RETURN

0 commit comments

Comments
 (0)