-
Notifications
You must be signed in to change notification settings - Fork 45
/
codenarc.xml
72 lines (64 loc) · 4.13 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<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">
<description>
Basic rule set.
These rules are intended to be broadly (if not universally) applicable.
</description>
<rule class='org.codenarc.rule.basic.AssertWithinFinallyBlockRule'/>
<rule class='org.codenarc.rule.basic.BigDecimalInstantiationRule'/>
<rule class='org.codenarc.rule.basic.BrokenNullCheckRule'/>
<rule class='org.codenarc.rule.basic.ClassForNameRule'/>
<rule class='org.codenarc.rule.basic.ComparisonOfTwoConstantsRule'/>
<rule class='org.codenarc.rule.basic.ComparisonWithSelfRule'/>
<rule class='org.codenarc.rule.basic.ConstantAssertExpressionRule'/>
<rule class='org.codenarc.rule.basic.ConstantTernaryExpressionRule'/>
<rule class='org.codenarc.rule.basic.ConstantIfExpressionRule'/>
<rule class='org.codenarc.rule.basic.DeadCodeRule'/>
<rule class='org.codenarc.rule.basic.DoubleNegativeRule'/>
<rule class='org.codenarc.rule.basic.DuplicateCaseStatementRule'/>
<rule class='org.codenarc.rule.basic.DuplicateMapKeyRule'/>
<rule class='org.codenarc.rule.basic.DuplicateSetValueRule'/>
<rule class='org.codenarc.rule.basic.EmptyCatchBlockRule'/>
<rule class='org.codenarc.rule.basic.EmptyClassRule'/>
<rule class='org.codenarc.rule.basic.EmptyElseBlockRule'/>
<rule class='org.codenarc.rule.basic.EmptyFinallyBlockRule'/>
<rule class='org.codenarc.rule.basic.EmptyForStatementRule'/>
<rule class='org.codenarc.rule.basic.EmptyIfStatementRule'/>
<rule class='org.codenarc.rule.basic.EmptySwitchStatementRule'/>
<rule class='org.codenarc.rule.basic.EmptySynchronizedStatementRule'/>
<rule class='org.codenarc.rule.basic.EmptyStaticInitializerRule'/>
<rule class='org.codenarc.rule.basic.EmptyTryBlockRule'/>
<rule class='org.codenarc.rule.basic.EmptyWhileStatementRule'/>
<rule class='org.codenarc.rule.basic.EmptyInstanceInitializerRule'/>
<rule class='org.codenarc.rule.basic.EmptyMethodRule'/>
<rule class='org.codenarc.rule.basic.EqualsAndHashCodeRule'/>
<rule class='org.codenarc.rule.basic.EqualsOverloadedRule'/>
<rule class='org.codenarc.rule.basic.ForLoopShouldBeWhileLoopRule'/>
<rule class='org.codenarc.rule.basic.HardCodedWindowsFileSeparatorRule'/>
<rule class='org.codenarc.rule.basic.HardCodedWindowsRootDirectoryRule'/>
<rule class='org.codenarc.rule.basic.MultipleUnaryOperatorsRule'/>
<rule class='org.codenarc.rule.basic.RandomDoubleCoercedToZeroRule'/>
<rule class='org.codenarc.rule.basic.RemoveAllOnSelfRule'/>
<rule class='org.codenarc.rule.basic.ReturnFromFinallyBlockRule'/>
<rule class='org.codenarc.rule.basic.ThrowExceptionFromFinallyBlockRule'/>
<rule class='org.codenarc.rule.convention.LongLiteralWithLowerCaseLRule'/>
<rule class='org.codenarc.rule.convention.VectorIsObsoleteRule'/>
<rule class='org.codenarc.rule.convention.HashtableIsObsoleteRule'/>
<rule class='org.codenarc.rule.imports.DuplicateImportRule'/>
<rule class='org.codenarc.rule.imports.UnnecessaryGroovyImportRule'/>
<rule class='org.codenarc.rule.imports.ImportFromSunPackagesRule'/>
<rule class='org.codenarc.rule.security.FileCreateTempFileRule'/>
<rule class='org.codenarc.rule.unnecessary.UnnecessaryTernaryExpressionRule'/>
<rule class='org.codenarc.rule.unnecessary.UnnecessaryModOneRule'/>
<rule class='org.codenarc.rule.unnecessary.UnnecessaryElseStatementRule'/>
<rule class='org.codenarc.rule.unnecessary.UnnecessaryCatchBlockRule'/>
<rule class='org.codenarc.rule.unnecessary.UnnecessaryCallToSubstringRule'/>
<rule class='org.codenarc.rule.generic.IllegalRegexRule'>
<property name='name' value='TodoComment'/>
<property name='regex' value='((\/\/(.*? )?)(?i)(TODO|FIXME)( |$|\r?\n))|(\/\*([\s\S]*?)(?i)(TODO|FIXME)([\s\S]*?)\*\/)'/>
<property name='violationMessage' value='Resolve unexpected comment.'/>
</rule>
<rule class='org.codenarc.rule.naming.ClassNameSameAsFilenameRule'/>
</ruleset>