PackageAnnotation: enabled
This commit is contained in:
parent
41d4166aff
commit
66c87c2223
2 changed files with 6 additions and 5 deletions
10
README.md
10
README.md
|
@ -222,7 +222,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty
|
|||
* [OuterTypeNumber](#outertypenumber) - checkstyle - disabled
|
||||
* [OverloadMethodsDeclarationOrder](#overloadmethodsdeclarationorder) - checkstyle - enabled
|
||||
* [OverridableMethodInConstructor](#overridablemethodinconstructor) - sevntu - enabled
|
||||
* [PackageAnnotation](#packageannotation) - checkstyle - disabled
|
||||
* [PackageAnnotation](#packageannotation) - checkstyle - enabled
|
||||
* [PackageDeclaration](#packagedeclaration) - checkstyle - enabled
|
||||
* [PackageName](#packagename) - checkstyle - enabled
|
||||
* [ParameterAssignment](#parameterassignment) - checkstyle - disabled
|
||||
|
@ -1789,6 +1789,10 @@ Checks that the source filename matches the name of the top-level class. e.g. `
|
|||
|
||||
Checks that overload methods are grouped together in the source file.
|
||||
|
||||
#### [PackageAnnotation](http://checkstyle.sourceforge.net/config_annotation.html#PackageAnnotation)
|
||||
|
||||
Checks that package level annotations are in the `package-info.java` file.
|
||||
|
||||
#### [PackageDeclaration](http://checkstyle.sourceforge.net/config_coding.html#PackageDeclaration)
|
||||
|
||||
Checks that the class has a `package` definition.
|
||||
|
@ -2728,10 +2732,6 @@ The javadoc compiler automatically inherits the javadoc from the overridden meth
|
|||
|
||||
Already covered by the [OneTopLevelClass](#onetoplevelclass) check.
|
||||
|
||||
#### [PackageAnnotation](http://checkstyle.sourceforge.net/config_annotation.html#PackageAnnotation)
|
||||
|
||||
> TODO: enable
|
||||
|
||||
#### [ParameterAssignment](http://checkstyle.sourceforge.net/config_coding.html#ParameterAssignment)
|
||||
|
||||
> TODO: enable
|
||||
|
|
|
@ -178,6 +178,7 @@
|
|||
<module name="OuterTypeFilename"/> <!-- class name and filename must match -->
|
||||
<module name="OverloadMethodsDeclarationOrder"/> <!-- group overloaded methods together -->
|
||||
|
||||
<module name="PackageAnnotation"/> <!-- package level annotations appear in package-info.java -->
|
||||
<module name="PackageDeclaration"/> <!-- class must have package and it must match the directory -->
|
||||
<module name="PackageName"> <!-- validate package name format -->
|
||||
<property name="format" value="^[a-z]+(\.[a-z]+)*$"/> <!-- only lowercase letters, no numbers of underscores -->
|
||||
|
|
Loading…
Reference in a new issue