We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
FileCollector.addFile(Path, 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
The text was updated successfully, but these errors were encountered:
As discussed in #3971, this should also cover the case addFile(TextFile), where TextFile itself provides a specific language already.
addFile(TextFile)
Sorry, something went wrong.
[core] Store languageVersion in DataSource
815242a
in order to support FileCollector.addFile with language Fixes pmd#3970
1b5f7e8
adangel
Successfully merging a pull request may close this issue.
Affects PMD Version: 6.45.0
Description:
When using
FileCollector.addFile(Path, Language)
, the language is ignored. Still the fileextension is used to determine the actual language.
See #3952 for a use case.
Example code:
Running PMD through: Other
The text was updated successfully, but these errors were encountered: