Przeglądaj źródła

checkstyle: resource folders excluded form check

Andreas Mager 8 lat temu
rodzic
commit
e2aa30d139
3 zmienionych plików z 10 dodań i 1 usunięć
  1. 8 0
      checkstyle-suppressions.xml
  2. 1 1
      checkstyle.xml
  3. 1 0
      pom.xml

+ 8 - 0
checkstyle-suppressions.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE suppressions PUBLIC
+        "-//Puppy Crawl//DTD Suppressions 1.0//EN"
+        "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
+
+<suppressions>
+    <suppress checks="[a-zA-Z0-9]*" files=".*/resources/.*"/>
+</suppressions>

+ 1 - 1
checkstyle.xml

@@ -22,7 +22,7 @@
 
   <!--
   <module name="SuppressionFilter">
-    <property name="file" value="/io/netty/suppressions.xml" />
+    <property name="file" value="checkstyle-suppressions.xml" />
   </module>
   <module name="io.netty.build.checkstyle.SuppressionFilter">
     <property name="pattern" value="((LocalTime|WorldClock)Protocol|LinkedTransferQueue|Version|jzlib/.*|chmv8/.*|com/sun/nio/sctp/.*)\.java" />

+ 1 - 0
pom.xml

@@ -138,6 +138,7 @@
               <version>2.17</version>
               <configuration>
                   <configLocation>checkstyle.xml</configLocation>
+                  <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
                   <!--
                      <configLocation>/google_checks.xml</configLocation>
                    -->