Use OS independant path separator in checkstyle suppressions
This commit is contained in:
parent
77bc558f68
commit
e01951a63d
@ -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>
|
@ -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>
|
@ -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 {
|
||||
}
|
||||
|
@ -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>
|
@ -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>
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user