1
0
mirror of https://github.com/filoghost/HolographicDisplays.git synced 2025-01-05 15:47:37 +01:00

Tweak checkstyle settings

This commit is contained in:
filoghost 2021-05-18 09:48:24 +02:00
parent f370dfff4f
commit 305931bd73
3 changed files with 12 additions and 3 deletions

View File

@ -41,7 +41,9 @@
<module name="TreeWalker">
<!-- Blocks -->
<module name="AvoidNestedBlocks"/>
<module name="EmptyBlock"/>
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected|ignore"/>
</module>
@ -64,7 +66,6 @@
</module>
<module name="DefaultComesLast"/>
<module name="EmptyStatement"/>
<module name="EqualsAvoidNull"/>
<module name="EqualsHashCode"/>
<module name="FallThrough"/>
<module name="IllegalThrows"/>
@ -159,7 +160,8 @@
<!-- Whitespace -->
<module name="RegexpSinglelineJava">
<property name="format" value="[^\s]\s+$"/>
<!-- Tolerate one trailing space, except immediately after curly braces, left parenthesis and semicolon -->
<property name="format" value="([^\s]\s{2,}|[}{(;]\s+)$"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="ignoreComments" value="true"/>

View File

@ -10,4 +10,10 @@
<suppress
checks="Header"
files="[\\/]me[\\/]filoghost[\\/]holographicdisplays[\\/]bridge[\\/]protocollib[\\/].+\.java"/>
<suppress
checks="LeftCurly|EmptyLineSeparator"
files="[\\/]me[\\/]filoghost[\\/]holographicdisplays[\\/]nms[\\/]\w+[\\/]Craft.+\.java"/>
<suppress
checks="SummaryJavadoc"
files="[\\/]com[\\/]gmail[\\/]filoghost[\\/](holograms|holographicdisplays)[\\/]api[\\/].+\.java"/>
</suppressions>

View File

@ -374,6 +374,7 @@
</dependency>
</dependencies>
<configuration>
<consoleOutput>true</consoleOutput>
<configLocation>${rootDir}/checkstyle/checkstyle.xml</configLocation>
<propertyExpansion>samedir=${rootDir}/checkstyle</propertyExpansion>
<sourceDirectories>