Made exceptions of the Scala tokenizer non-fatal when CPD is executed with the '--skipLexicalErrors' command line option.
This commit is contained in:
@ -101,7 +101,7 @@ public class CPDCommandLineInterfaceTest {
|
||||
"--format", "text",
|
||||
"--skip-lexical-errors");
|
||||
String out = bufferStdout.toString("UTF-8");
|
||||
Assert.assertTrue(out.contains("Skipping Lexical error in file"));
|
||||
Assert.assertTrue(Pattern.compile("Skipping .*?BadFile\\.java\\. Reason: Lexical error in file").matcher(out).find());
|
||||
Assert.assertTrue(out.contains("Found a 5 line (13 tokens) duplication"));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user