Permalink
Browse files

CheckStyle: Fix IDE compatibility + gitignore

- Fix Eclipse's (and according to Google IntelliJ's) CheckStyle plugins failing on finding the checkstyle_suppressions.xml file. This change does not affect Maven builds.
- Add .checkstyle to the git ignore file.
  • Loading branch information...
Pieter12345 committed Jun 27, 2018
1 parent bdb29c3 commit 401d4c222557b42a1d4257febff974a007703a6c
Showing with 4 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 checkstyle.xml
  3. +1 −0 pom.xml
@@ -19,4 +19,5 @@ true
.DS_Store
/test-backend/
/nbproject/
/dependency-reduced-pom.xml
/dependency-reduced-pom.xml
.checkstyle
@@ -11,7 +11,7 @@
<!-- Supression filter to disable specified modules/checks for specified files -->
<module name="SuppressionFilter">
<property name="file" value="checkstyle_suppressions.xml"/>
<property name="file" value="${config_loc}/checkstyle_suppressions.xml"/>
<property name="optional" value="false"/>
</module>
@@ -929,6 +929,7 @@
<testSourceDirectories>${project.testCompileSourceRoots}</testSourceDirectories>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<propertyExpansion>config_loc=${basedir}</propertyExpansion>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>

0 comments on commit 401d4c2

Please sign in to comment.