Advance rules - provided by CheckStyle
NoClone
Checks that the clone method is not overridden from the Object class.
Regexp
A check that makes sure that a specified pattern exists (or not) in the file.
MagicNumber
Checks for magic numbers.
Checks that there are no "magic numbers", where a magic number is a numeric literal that is not defined as a constant.
By default, -1, 0, 1, and 2 are not considered to be magic numbers.
SuperClone
Checks that an overriding clone() method invokes super.clone().
SuperFinalize
Checks that an overriding finalize() method invokes super.finalize().
TodoComment
A check for TODO comments.
SuppressWarnings
This check allows you to specify what warnings that
SuppressWarningsHolder
This check allows for finding code that should not be reported by Checkstyle
UncommentedMain
Detects uncommented main methods.
NoFinalizer
Checks that no method having zero parameters is defined using the name finalize.
StrictDuplicateCode
Performs a line-by-line comparison of all code lines and reports duplicate code if a sequence of lines differs only in indentation.
RedundantModifier
Checks for redundant modifiers in interface and annotation definitions.
IllegalImport
Checks for imports from a set of illegal packages.
IllegalInstantiation
Checks for illegal instantiations where a factory method is preferred.
IllegalType
Checks that particular class are never used as types in variable declarations, return values or parameters.
InnerAssignment
Checks for assignments in subexpressions, such as in String s = Integer.toString(i = 2);
InnerTypeLast
Check nested (internal) classes/interfaces are declared at the bottom of the class after all method and field declarations.
ParameterAssignment
Disallow assignment of parameters.
ModifiedControlVariable
Check for ensuring that for loop control variables are not modified inside the for block.
MultipleStringLiterals
Checks for multiple occurrences of the same string literal within a single file.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.