forked from phoedos/pmd
Added a local variable test
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2244 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -6,6 +6,28 @@ These are new rules that are still in progress
|
||||
</description>
|
||||
|
||||
|
||||
<rule name="VariableNamingConventionsRule"
|
||||
message="{0} variable {1} should begin with {2}"
|
||||
class="net.sourceforge.pmd.rules.VariableNamingConventionsRule">
|
||||
<description>
|
||||
A variable naming conventions rule - customize this to your liking
|
||||
Final variables should be all caps
|
||||
Non-final variables should not include underscores
|
||||
</description>
|
||||
<priority>1</priority>
|
||||
<example>
|
||||
<![CDATA[
|
||||
public class Foo {
|
||||
public static final int MY_NUM = 0;
|
||||
public String myTest = "";
|
||||
DataModule dmTest = new DataModule();
|
||||
}
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
|
||||
<!--
|
||||
|
||||
<rule name="SymbolTableTestRule"
|
||||
message="NOT FULLY IMPLEMENTED - test"
|
||||
class="net.sourceforge.pmd.rules.SymbolTableTestRule">
|
||||
@ -20,6 +42,7 @@ These are new rules that are still in progress
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<rule name="IdempotentOperationsRule"
|
||||
|
Reference in New Issue
Block a user