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

@ -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 {
}