Skip to content
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">
Rulesets currently honored by Tinfour.
<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 ref="rulesets/java/design.xml">
<exclude name="UseVarargs" />
<exclude name="GodClass" />
<exclude name="FieldDeclarationsShouldBeAtStartOfClass" />
<exclude name="UseLocaleWithCaseConversions" />
<!-- 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 ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
<rule ref="rulesets/java/unusedcode.xml">
<exclude name="UnusedModifier" />
You can’t perform that action at this time.