forked from wildfly-extras/creaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codenarc.xml
54 lines (46 loc) · 2.04 KB
/
codenarc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<ruleset xmlns="http://codenarc.org/ruleset/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://codenarc.org/ruleset/1.0 http://codenarc.org/ruleset-schema.xsd"
xsi:noNamespaceSchemaLocation="http://codenarc.org/ruleset-schema.xsd">
<ruleset-ref path="rulesets/basic.xml">
<rule-config name="EmptyCatchBlock">
<property name="ignoreRegex" value="ignored|expected"/>
</rule-config>
</ruleset-ref>
<ruleset-ref path="rulesets/convention.xml">
<exclude name="InvertedIfElse"/>
<exclude name="NoDef"/>
<exclude name="ParameterReassignment"/>
</ruleset-ref>
<ruleset-ref path="rulesets/design.xml">
<exclude name="NestedForLoop"/>
<exclude name="PublicInstanceField"/>
</ruleset-ref>
<ruleset-ref path="rulesets/formatting.xml">
<rule-config name="SpaceAfterOpeningBrace">
<property name="ignoreEmptyBlock" value="true"/>
</rule-config>
<rule-config name="SpaceAroundMapEntryColon">
<property name="characterBeforeColonRegex" value="\S"/>
<property name="characterAfterColonRegex" value="\s"/>
</rule-config>
<rule-config name="SpaceBeforeClosingBrace">
<property name="ignoreEmptyBlock" value="true"/>
</rule-config>
<exclude name="ClassJavadoc"/>
<exclude name="LineLength"/> <!-- I'd love to have this, but there's no way to configure exceptions -->
</ruleset-ref>
<ruleset-ref path="rulesets/groovyism.xml">
<exclude name="GStringExpressionWithinString"/>
</ruleset-ref>
<ruleset-ref path="rulesets/imports.xml">
<rule-config name="MisorderedStaticImports">
<property name="comesBefore" value="false"/>
</rule-config>
</ruleset-ref>
<ruleset-ref path="rulesets/unnecessary.xml">
<exclude name="UnnecessaryGString"/>
<exclude name="UnnecessaryReturnKeyword"/>
</ruleset-ref>
<ruleset-ref path="rulesets/unused.xml"/>
</ruleset>