Add checkstyle to imgui-binding and make everything compliant to Java codestyle
This commit is contained in:
1 parent
3f7698fc67
commit
2b8828dda4
20 files changed
+1732
-1670
No files matched your search
@@ -91,6 +91,10 @@
|
||||
<!-- Suppress warnings by using -->
|
||||
<module name="SuppressWarningsFilter"/>
|
||||
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${config_loc}/suppressions.xml" />
|
||||
</module>
|
||||
|
||||
<module name="TreeWalker">
|
||||
|
||||
<!-- Checks for Javadoc comments. -->
|
||||
@@ -160,7 +164,10 @@
|
||||
<!-- See https://checkstyle.org/config_coding.html -->
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="EqualsHashCode"/>
|
||||
<module name="HiddenField"/>
|
||||
<module name="HiddenField" >
|
||||
<property name="ignoreSetter" value="true" />
|
||||
<property name="ignoreConstructorParameter" value="true" />
|
||||
</module>
|
||||
<module name="IllegalInstantiation"/>
|
||||
<module name="InnerAssignment"/>
|
||||
<module name="MagicNumber"/>
|
||||
@@ -178,11 +185,11 @@
|
||||
<module name="VisibilityModifier"/>
|
||||
|
||||
<!-- Miscellaneous other checks. -->
|
||||
<!-- See https://checkstyle.org/config_misc.html -->
|
||||
<!-- See https://checkstyle.org/config_misc.html -->
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="FinalParameters"/>
|
||||
<module name="FinalLocalVariable"/>
|
||||
<module name="TodoComment"/>
|
||||
<!-- <module name="TodoComment"/> -->
|
||||
<module name="UpperEll"/>
|
||||
|
||||
<!-- See https://checkstyle.sourceforge.io/config_annotation.html#SuppressWarningsHolder -->
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE suppressions PUBLIC
|
||||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
|
||||
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||
|
||||
<suppressions>
|
||||
<suppress checks="MagicNumber" files="[\\/]imgui[\\/]"/>
|
||||
<suppress checks="LineLength" files="[\\/]imgui[\\/]"/>
|
||||
<suppress checks="ConstantName" files="[\\/]imgui[\\/]"/>
|
||||
<suppress checks="VisibilityModifier" files="[\\/]imgui[\\/]"/>
|
||||
<suppress checks="ParameterNumber" files="[\\/]imgui[\\/]"/>
|
||||
<suppress checks="FileLength" files="[\\/]imgui[\\/]"/>
|
||||
<suppress checks="FinalParameters" files="ImGui.java"/>
|
||||
</suppressions>
|
||||
Reference in new issue
Block a user