GeezerVison is showing github.com — [core] Explicitly name all language versions by adangel · Pull Request #4387 · pmd/pmd
Conversation
adangel
commented
Feb 9, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Describe the PR
- Add the versions. Always select the latest version as "default".
- Make the version name be required - empty version names are not allowed anymore
- Make sure for each PMD language, that the names are reused for the CPD language (e.g. Ecmascript / JavaScript)
- Make sure for each PMD language, that the same extensions are used for CPD language
- ❌ Change extension for pom to xml (refs [pom] Maven POM Rules don't check files named "pom.xml" #1540) - won't do with this PR
- we probably have anyway some extension clashes, at least for CPD (cpp vs. objectivec)
- it turns out, that correctly detect, that "pom.xml" has two languages associated,
but we just use the first language:
|
Language lang = languages.get(0); |
|
if (languages.size() > 1) { |
|
LOG.trace("File {} matches multiple languages ({}), selecting {}", file, languages, lang); |
|
} |
- this results in identifying any xml file now as language "pom" - and we don't execute the XML rules anymore against this file...
- Update release notes (esp. ecmascript versions)
Related issues
Ready?
- Added unit tests for fixed bug/feature
- Passing all unit tests
- Complete build
./mvnw clean verify passes (checked automatically by github actions)
- Added (in-code) documentation (if needed)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
adangel
changed the title
Pmd7 language versions
[core] Explicitly name all language versions
Feb 9, 2023
ghost
commented
Feb 9, 2023
•
edited by ghost
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
2 Messages
|
| 📖 |
Compared to pmd/7.0.x:
This changeset changes 9 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report |
| 📖 |
Compared to master:
This changeset changes 50620 violations,
introduces 34690 new violations, 12 new errors and 0 new configuration errors,
removes 142020 violations, 4 errors and 7 configuration errors.
Full report |
| ✅ |
Compared to pmd/7.0.x:
This changeset changes 7 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 50620 violations,
introduces 34690 new violations, 12 new errors and 0 new configuration errors,
removes 142020 violations, 4 errors and 7 configuration errors.
Full report |
| ✅ |
Compared to pmd/7.0.x:
This changeset changes 9 violations,
introduces 2 new violations, 0 new errors and 0 new configuration errors,
removes 2 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 50624 violations,
introduces 34682 new violations, 12 new errors and 0 new configuration errors,
removes 142045 violations, 4 errors and 7 configuration errors.
Full report |
| ✅ |
Compared to pmd/7.0.x:
This changeset changes 5 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 50624 violations,
introduces 34682 new violations, 12 new errors and 0 new configuration errors,
removes 142045 violations, 4 errors and 7 configuration errors.
Full report |
| ✅ |
Compared to pmd/7.0.x:
This changeset changes 10 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 50624 violations,
introduces 34682 new violations, 12 new errors and 0 new configuration errors,
removes 142045 violations, 4 errors and 7 configuration errors.
Full report |
| ✅ |
Compared to pmd/7.0.x:
This changeset changes 7 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 50624 violations,
introduces 34682 new violations, 12 new errors and 0 new configuration errors,
removes 142045 violations, 4 errors and 7 configuration errors.
Full report |
| ✅ |
Compared to pmd/7.0.x:
This changeset changes 13 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 50624 violations,
introduces 34682 new violations, 12 new errors and 0 new configuration errors,
removes 142045 violations, 4 errors and 7 configuration errors.
Full report |
Generated by 🚫 Danger
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for starting this!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Feb 10, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|