-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
[core] Explicitly name all language versions #4120
Comments
@oowekyala I edited the issue to include a list of languages and versions to set when we pick this up. I took the freedom of setting values for those we know / can for sure. We can discuss others on this thread and add them there as a summary as we reach agreements. Open questions:
|
@adangel I'd argue this actually is required for PMD 7.0.0 release… otherwise, the pmd/pmd-dist/src/test/java/net/sourceforge/pmd/it/BinaryDistributionIT.java Lines 32 to 41 in 510f41a
We may not be exhaustive in PMD 7 (although the cost is probably marginal), but at least 1 version per language would be required for proper compliance. |
Yes, that makes sense. The language-version-combination |
Let me try to summarize the discussion:
Approaching a solution:
Suggestion:
Suggested tasks:
Wdyt? |
I've done the research now and collected the specs etc. apex:
Proposed versions: 57, 56, 55, 54, 53, 52 ecmascript:
Proposed versions: 3, 5, 6 (alias: ES6, ES2015), 7 (ES2016), 8 (ES2017), 9 (ES2018) html:
Proposed versions: 5, 4 java:
jsp:
Proposed versions: 2, 3, 4? kotlin:
modelica:
plsql:
pom:
Proposed versions: 4.0.0 scala:
swift:
Proposed versions: 4.2, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7 Salesforce VisualForce:
Proposed versions: 57, 56, 55, 54, 53, 52 vm:
Proposed versions: 2.0, 2.1, 2.2, 2.3 wsdl:Proposed versions: 1.1, 2.0 xml:Proposed versions: 1.0, 1.1 xsl:Proposed versions: 1.0, 2.0, 3.0 |
This is fixed for PMD 7 via #4387 |
Is your feature request related to a problem? Please describe.
Some languages have a single language version with the empty string as a name. This is not a problem today but #4059 aims to make
--use-version
more useful by allowing to explicitly state a version to use for all languages. The goal of this is to have a failsafe in case the version is changed or removed, and to document versions better. This is not possible if versions have empty names.Describe the solution you'd like
Give an explicit name for all language versions.
Describe alternatives you've considered
#4048 was an alternative to this but doesn't help with the
--use-version
use case described above, indeed making it worse.Additional context
See full thread in #4059 (comment)
PMD Language and version mappings
PMD Languages that only support CPD
all except "go" are deprecated on PMD 6, as they don't support PMD
They will be/have been deleted in PMD 7
CPD Languages
The text was updated successfully, but these errors were encountered: