Skip to content

Commit 401d4c2

Browse files
committed
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.
1 parent bdb29c3 commit 401d4c2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ true
1919
.DS_Store
2020
/test-backend/
2121
/nbproject/
22-
/dependency-reduced-pom.xml
22+
/dependency-reduced-pom.xml
23+
.checkstyle

checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<!-- Supression filter to disable specified modules/checks for specified files -->
1313
<module name="SuppressionFilter">
14-
<property name="file" value="checkstyle_suppressions.xml"/>
14+
<property name="file" value="${config_loc}/checkstyle_suppressions.xml"/>
1515
<property name="optional" value="false"/>
1616
</module>
1717

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@
929929
<testSourceDirectories>${project.testCompileSourceRoots}</testSourceDirectories>
930930
<includeTestSourceDirectory>true</includeTestSourceDirectory>
931931
<configLocation>${basedir}/checkstyle.xml</configLocation>
932+
<propertyExpansion>config_loc=${basedir}</propertyExpansion>
932933
<encoding>UTF-8</encoding>
933934
<consoleOutput>true</consoleOutput>
934935
<failsOnError>true</failsOnError>

0 commit comments

Comments
 (0)