PMD exit with status 4 if violations have been found.
This commit is contained in:
@ -21,7 +21,7 @@ public class CLITest extends BaseCLITest {
|
||||
String[] args = { "-d", SOURCE_FOLDER, "-f", "xml", "-R", "ecmascript-basic", "-version", "3", "-l",
|
||||
"ecmascript", "-debug" };
|
||||
String resultFilename = runTest(args, "useEcmaScript");
|
||||
assertTrue("Invalid Java version",
|
||||
assertTrue("Invalid JavaScript version",
|
||||
FileUtil.findPatternInFile(new File(resultFilename), "Using Ecmascript version: Ecmascript 3"));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,4 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
// just some js file for net.sourceforge.pmd.cli.CLITest
|
Reference in New Issue
Block a user