Add checkstyle to prevent future jetbrains annotations from sneaking in
This commit is contained in:
parent
89e56ecb98
commit
52d161c337
|
@ -30,6 +30,16 @@
|
||||||
<property name="ignorePattern"
|
<property name="ignorePattern"
|
||||||
value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<module name="RegexpSingleline">
|
||||||
|
<property name="format" value="org.jetbrains.annotations.NotNull"/>
|
||||||
|
<property name="message" value="Incorrect NotNull annotation used: The "javax.annotation.Nonnull" annotation should be used for non-null things"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
<module name="RegexpSingleline">
|
||||||
|
<property name="format" value="org.jetbrains.annotations.Nullable"/>
|
||||||
|
<property name="message" value="Incorrect Nullable annotation used: The "javax.annotation.Nullable" annotation should be used for nullable things"/>
|
||||||
|
</module>
|
||||||
<!--<module name="AvoidStarImport"/> -->
|
<!--<module name="AvoidStarImport"/> -->
|
||||||
<module name="OneTopLevelClass"/>
|
<module name="OneTopLevelClass"/>
|
||||||
<module name="NoLineWrap"/>
|
<module name="NoLineWrap"/>
|
||||||
|
|
Loading…
Reference in New Issue