Skip to content

Commit 992c273

Browse files
committed
Ignore Metrics in checkstyle
1 parent 18380b5 commit 992c273

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

checkstyle.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
<!-- Allow "@SuppressWarnings(checkstyle:<CHECK>)" checkstyle violation suppression -->
1919
<module name="SuppressWarningsFilter"/>
2020

21-
<module name="TreeWalker">
21+
22+
<module name="TreeWalker">
23+
<!-- Allow "//CHECKSTYLE:OFF/ON" -->
24+
<module name="SuppressionCommentFilter"/>
2225

2326
<!-- Enable usage of "@SuppressWarnings(checkstyle:<CHECK>)" to suppress checkstyle violations -->
2427
<module name="SuppressWarningsHolder"/>

src/main/java/org/bstats/bukkit/Metrics.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// CHECKSTLYE:OFF
12
package org.bstats.bukkit;
23

34
import org.bukkit.Bukkit;
@@ -667,4 +668,5 @@ protected JSONObject getChartData() throws Exception {
667668
}
668669

669670
}
670-
}
671+
}
672+
// CHECKSTYLE:ON

0 commit comments

Comments
 (0)