Affects PMD Version: 6.45.0
Description:
When using FileCollector.addFile(Path, Language)
, the language is ignored. Still the file
extension is used to determine the actual language.
See #3952 for a use case.
Example code:
Language language = LanguageRegistry.getLanguage("html"); try (PmdAnalysis pmd = PmdAnalysis.create(config)) { pmd.files().addFile(Paths.get("componentes", "myComponent.cmp"), language); Report report = pmd.performAnalysisAndCollectReport(); }
Running PMD through: Other
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4