Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (33 sloc) 1.22 KB
<?xml version="1.0"?>
<ruleset name="customruleset">
<description>
Rulesets currently honored by Tinfour.
</description>
<rule ref="rulesets/java/basic.xml"/>
<rule ref="rulesets/java/sunsecure.xml"/>
<rule ref="rulesets/java/braces.xml"/>
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/design.xml">
<exclude name="UseVarargs" />
<exclude name="GodClass" />
<exclude name="FieldDeclarationsShouldBeAtStartOfClass" />
<exclude name="UseLocaleWithCaseConversions" />
</rule>
<!-- TODO: Revisit optimitization rules, right now a lot of violations.
Try this when you have time to test whether they actually matter
by using the TwinBuildTest. I suspect all the "could be final" rules
are resolved by the compiler anyway. -->
<rule ref="rulesets/java/optimizations.xml">
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="PrematureDeclaration" />
</rule>
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/unusedcode.xml">
<exclude name="UnusedModifier" />
</rule>
</ruleset>
You can’t perform that action at this time.