UncommentedMain: enabled
This commit is contained in:
parent
559daa92e8
commit
cf5b220915
2 changed files with 9 additions and 7 deletions
12
README.md
12
README.md
|
@ -268,7 +268,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty
|
|||
* [Translation](#translation) - checkstyle - enabled
|
||||
* [TypecastParenPad](#typecastparenpad) - checkstyle - enabled
|
||||
* [TypeName](#typename) - checkstyle - enabled - insuppressible
|
||||
* [UncommentedMain](#uncommentedmain) - checkstyle - disabled
|
||||
* [UncommentedMain](#uncommentedmain) - checkstyle - enabled
|
||||
* [UniformEnumConstantName](#uniformenumconstantname) - sevntu - enabled
|
||||
* [UniqueProperties](#uniqueproperties) - checkstyle - disabled
|
||||
* [UnnecessaryParentheses](#unnecessaryparentheses) - checkstyle - enabled
|
||||
|
@ -2138,6 +2138,10 @@ Checks the format of `class`, `interface`, `enum` identifiers, including annotat
|
|||
|
||||
Identifiers must match `^[A-Z][a-zA-Z0-9]*$`.
|
||||
|
||||
#### [UncommentedMain](http://checkstyle.sourceforge.net/config_misc.html#UncommentedMain)
|
||||
|
||||
Checks for `public static void main()` methods that may have been left over from testing. Allowed in classes whose names end in `Main` or `Application`.
|
||||
|
||||
#### [UnnecessaryParentheses](http://checkstyle.sourceforge.net/config_coding.html#UnnecessaryParentheses)
|
||||
|
||||
Checks for the use of unnecessary parentheses.
|
||||
|
@ -2822,12 +2826,6 @@ Overridding the `clone()` method is not allowed by the [NoClone](#noclone) check
|
|||
|
||||
[NoFinalizer](#nofinalizer) prevents use of `finalize()`.
|
||||
|
||||
#### [UncommentedMain](http://checkstyle.sourceforge.net/config_misc.html#UncommentedMain)
|
||||
|
||||
> TODO: enable
|
||||
|
||||
> TODO: excludedClasses = "Main$"
|
||||
|
||||
#### [UniqueProperties](http://checkstyle.sourceforge.net/config_misc.html#UniqueProperties)
|
||||
|
||||
> TODO: enable
|
||||
|
|
|
@ -224,6 +224,10 @@
|
|||
<module name="TypecastParenPad"/> <!-- no spaces in type casting parentheses -->
|
||||
<module name="TypeName"/> <!-- validates class, interface, enum and annotation names -->
|
||||
|
||||
<module name="UncommentedMain"> <!-- checks for stray public static void main() methods -->
|
||||
<!-- allowed in classes that end in Main or Application-->
|
||||
<property name="excludedClasses" value="(Main|Application)$"/>
|
||||
</module>
|
||||
<module name="UnnecessaryParentheses"/> <!-- unnecessary parentheses -->
|
||||
<module name="UnusedImports"/> <!-- checks for import that aren't used -->
|
||||
<module name="UpperEll"/> <!-- long constants have an 'L' suffix -->
|
||||
|
|
Loading…
Reference in a new issue