Fix compil

This commit is contained in:
Clément Fournier
2023-04-20 17:31:12 +02:00
parent dd48dabac9
commit d6b02d18b4

View File

@@ -243,7 +243,7 @@ abstract class BaseParsingHelper<Self : BaseParsingHelper<Self, T>, T : RootNode
return PmdAnalysis.create(config).use { pmd ->
pmd.addListener(GlobalAnalysisListener.exceptionThrower())
pmd.addRuleSet(RuleSet.forSingleRule(rule))
pmd.files().addSourceFile(code, fileName)
pmd.files().addSourceFile(fileName, code)
pmd.performAnalysisAndCollectReport()
}
}