Use OS independant path separator in checkstyle suppressions

This commit is contained in:
Dmitry Kurelchuk
2017-01-29 13:23:22 +02:00
parent 77bc558f68
commit e01951a63d
6 changed files with 19 additions and 19 deletions

View File

@ -6,6 +6,6 @@
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> <suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/>
<!-- ModifiedControlVariable / JumbledIncrementer --> <!-- ModifiedControlVariable / JumbledIncrementer -->
<suppress checks="ModifiedControlVariable" files="net/sourceforge/pmd/cpd/MatchAlgorithm\.java"/> <suppress checks="ModifiedControlVariable" files="net[\\/]sourceforge[\\/]pmd[\\/]cpd[\\/]MatchAlgorithm\.java"/>
<suppress checks="ModifiedControlVariable" files="net/sourceforge/pmd/lang/dfa/SequenceChecker\.java"/> <suppress checks="ModifiedControlVariable" files="net[\\/]sourceforge[\\/]pmd[\\/]lang[\\/]dfa[\\/]SequenceChecker\.java"/>
</suppressions> </suppressions>

View File

@ -5,8 +5,8 @@
<suppressions> <suppressions>
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> <suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/>
<suppress files="/src/main/java/net/sourceforge/pmd/lang/java/rule/AbstractJavaRule.java" <suppress files="[\\/]src[\\/]main[\\/]java[\\/]net[\\/]sourceforge[\\/]pmd[\\/]lang[\\/]java[\\/]rule[\\/]AbstractJavaRule\.java"
checks="AvoidStarImport" /> checks="AvoidStarImport" />
<suppress files="/src/test/java/net/sourceforge/pmd/typeresolution/testdata/ExtraTopLevelClass.java" <suppress files="[\\/]src[\\/]test[\\/]java[\\/]net[\\/]sourceforge[\\/]pmd[\\/]typeresolution[\\/]testdata[\\/]ExtraTopLevelClass\.java"
checks="OneTopLevelClass" /> checks="OneTopLevelClass" />
</suppressions> </suppressions>

View File

@ -7,5 +7,5 @@ package net.sourceforge.pmd.typeresolution.testdata;
public class ExtraTopLevelClass { public class ExtraTopLevelClass {
} }
class TheExtraTopLevelClass { // SUPPRESS CHECKSTYLE explicityl testing two classes in one file class TheExtraTopLevelClass {
} }

View File

@ -5,5 +5,5 @@
<suppressions> <suppressions>
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> <suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/>
<suppress checks="AvoidStarImport" files="src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractPLSQLRule.java"/> <suppress checks="AvoidStarImport" files="src[\\/]main[\\/]java[\\/]net[\\/]sourceforge[\\/]pmd[\\/]lang[\\/]plsql[\\/]rule[\\/]AbstractPLSQLRule\.java"/>
</suppressions> </suppressions>

View File

@ -6,5 +6,5 @@
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> <suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/>
<!-- Part of pmd-scala is under LGPL --> <!-- Part of pmd-scala is under LGPL -->
<suppress checks="RegexpHeader" files="org/sonar/plugins/scala/.*"/> <suppress checks="RegexpHeader" files="org[\\/]sonar[\\/]plugins[\\/]scala[\\/].*"/>
</suppressions> </suppressions>

View File

@ -6,7 +6,7 @@
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> <suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/>
<!-- The velocity language is under the Apache License. --> <!-- The velocity language is under the Apache License. -->
<suppress checks="RegexpHeaderCheck" files="net/sourceforge/pmd/lang/vm/.*"/> <suppress checks="RegexpHeaderCheck" files="net[\\/]sourceforge[\\/]pmd[\\/]lang[\\/]vm[\\/].*"/>
<suppress checks="ModifiedControlVariable" files="src/main/java/net/sourceforge/pmd/lang/vm/ast/NodeUtils.java"/> <suppress checks="ModifiedControlVariable" files="src[\\/]main[\\/]java[\\/]net[\\/]sourceforge[\\/]pmd[\\/]lang[\\/]vm[\\/]ast[\\/]NodeUtils\.java"/>
</suppressions> </suppressions>