PackageAnnotation: enabled

This commit is contained in:
Paul Campbell 2016-09-09 20:45:24 +01:00
parent 41d4166aff
commit 66c87c2223
2 changed files with 6 additions and 5 deletions

View file

@ -222,7 +222,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty
* [OuterTypeNumber](#outertypenumber) - checkstyle - disabled * [OuterTypeNumber](#outertypenumber) - checkstyle - disabled
* [OverloadMethodsDeclarationOrder](#overloadmethodsdeclarationorder) - checkstyle - enabled * [OverloadMethodsDeclarationOrder](#overloadmethodsdeclarationorder) - checkstyle - enabled
* [OverridableMethodInConstructor](#overridablemethodinconstructor) - sevntu - enabled * [OverridableMethodInConstructor](#overridablemethodinconstructor) - sevntu - enabled
* [PackageAnnotation](#packageannotation) - checkstyle - disabled * [PackageAnnotation](#packageannotation) - checkstyle - enabled
* [PackageDeclaration](#packagedeclaration) - checkstyle - enabled * [PackageDeclaration](#packagedeclaration) - checkstyle - enabled
* [PackageName](#packagename) - checkstyle - enabled * [PackageName](#packagename) - checkstyle - enabled
* [ParameterAssignment](#parameterassignment) - checkstyle - disabled * [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. 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) #### [PackageDeclaration](http://checkstyle.sourceforge.net/config_coding.html#PackageDeclaration)
Checks that the class has a `package` definition. 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. 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) #### [ParameterAssignment](http://checkstyle.sourceforge.net/config_coding.html#ParameterAssignment)
> TODO: enable > TODO: enable

View file

@ -178,6 +178,7 @@
<module name="OuterTypeFilename"/> <!-- class name and filename must match --> <module name="OuterTypeFilename"/> <!-- class name and filename must match -->
<module name="OverloadMethodsDeclarationOrder"/> <!-- group overloaded methods together --> <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="PackageDeclaration"/> <!-- class must have package and it must match the directory -->
<module name="PackageName"> <!-- validate package name format --> <module name="PackageName"> <!-- validate package name format -->
<property name="format" value="^[a-z]+(\.[a-z]+)*$"/> <!-- only lowercase letters, no numbers of underscores --> <property name="format" value="^[a-z]+(\.[a-z]+)*$"/> <!-- only lowercase letters, no numbers of underscores -->