Add checkstyle to prevent future jetbrains annotations from sneaking in

This commit is contained in:
Tadgh 2021-04-19 09:16:35 -04:00
parent 89e56ecb98
commit 52d161c337
1 changed files with 10 additions and 0 deletions

View File

@ -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 &quot;javax.annotation.Nonnull&quot; 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 &quot;javax.annotation.Nullable&quot; 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"/>