Header: enabled
This commit is contained in:
parent
af2b893796
commit
55e103c531
2 changed files with 8 additions and 8 deletions
12
README.md
12
README.md
|
@ -1071,6 +1071,10 @@ List<T> list = ImmutableList.Builder<T>::new;
|
||||||
sort(list, Comparable::<String>compareTo);
|
sort(list, Comparable::<String>compareTo);
|
||||||
````
|
````
|
||||||
|
|
||||||
|
#### [Header](http://checkstyle.sourceforge.net/config_header.html#Header)
|
||||||
|
|
||||||
|
Checks that all `*.java` source files begin with the contents of the `LICENSE.txt` file.
|
||||||
|
|
||||||
#### [HiddenField](http://checkstyle.sourceforge.net/config_coding.html#HiddenField)
|
#### [HiddenField](http://checkstyle.sourceforge.net/config_coding.html#HiddenField)
|
||||||
|
|
||||||
Checks that a local variable or parameter in a method doesn't have the same name as a field. Doesn't apply in constructors or setters.
|
Checks that a local variable or parameter in a method doesn't have the same name as a field. Doesn't apply in constructors or setters.
|
||||||
|
@ -2633,14 +2637,6 @@ These checks are not enabled. Notes are included for each explaining why.
|
||||||
|
|
||||||
Couldn't get my IDE's (IntelliJ) code style to match.
|
Couldn't get my IDE's (IntelliJ) code style to match.
|
||||||
|
|
||||||
#### [Header](http://checkstyle.sourceforge.net/config_header.html#Header)
|
|
||||||
|
|
||||||
> TODO: enable
|
|
||||||
|
|
||||||
> TODO: headerFile = LICENSE.txt
|
|
||||||
|
|
||||||
> TODO: fileExtensions = java
|
|
||||||
|
|
||||||
#### [IllegalInstantiation](http://checkstyle.sourceforge.net/config_coding.html#IllegalInstantiation)
|
#### [IllegalInstantiation](http://checkstyle.sourceforge.net/config_coding.html#IllegalInstantiation)
|
||||||
|
|
||||||
Not really suitable for a template ruleset as it requires an explicit list of classes to apply to.
|
Not really suitable for a template ruleset as it requires an explicit list of classes to apply to.
|
||||||
|
|
|
@ -86,6 +86,10 @@
|
||||||
|
|
||||||
<module name="GenericWhitespace"/> <!-- generic tokens are spaced correctly -->
|
<module name="GenericWhitespace"/> <!-- generic tokens are spaced correctly -->
|
||||||
|
|
||||||
|
<module name="Header"> <!-- All java source files start with the contents of LICENSE.txt -->
|
||||||
|
<property name="headerFile" value="LICENSE.txt"/>
|
||||||
|
<property name="fileExtensions" value="java"/>
|
||||||
|
</module>
|
||||||
<module name="HiddenField">
|
<module name="HiddenField">
|
||||||
<property name="ignoreConstructorParameter" value="true"/>
|
<property name="ignoreConstructorParameter" value="true"/>
|
||||||
<property name="ignoreSetter" value="true"/>
|
<property name="ignoreSetter" value="true"/>
|
||||||
|
|
Loading…
Reference in a new issue