Make pmd language have a hook to launch CPD
This allows removing the CPD language instances, sharing more logic between CPD and PMD, and using language properties to configure CPD and PMD uniformly.
This commit is contained in:
@ -62,7 +62,7 @@ public class ScalaTokenizer implements Tokenizer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tokenize(SourceCode sourceCode, Tokens tokenEntries) throws IOException {
|
||||
public void tokenize(TextDocument sourceCode, Tokens tokenEntries) throws IOException {
|
||||
|
||||
|
||||
try (TextDocument textDoc = TextDocument.create(CpdCompat.cpdCompat(sourceCode))) {
|
||||
|
Reference in New Issue
Block a user