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]*"/>
<!-- ModifiedControlVariable / JumbledIncrementer -->
<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[\\/]cpd[\\/]MatchAlgorithm\.java"/>
<suppress checks="ModifiedControlVariable" files="net[\\/]sourceforge[\\/]pmd[\\/]lang[\\/]dfa[\\/]SequenceChecker\.java"/>
</suppressions>

View File

@ -5,8 +5,8 @@
<suppressions>
<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" />
<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" />
</suppressions>

View File

@ -1,11 +1,11 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.typeresolution.testdata;
public class ExtraTopLevelClass {
}
class TheExtraTopLevelClass { // SUPPRESS CHECKSTYLE explicityl testing two classes in one file
}
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.typeresolution.testdata;
public class ExtraTopLevelClass {
}
class TheExtraTopLevelClass {
}

View File

@ -5,5 +5,5 @@
<suppressions>
<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>

View File

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

View File

@ -6,7 +6,7 @@
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/>
<!-- 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>