-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[core] Deprecate -language, -version, -min options #3426
Copy link
Copy link
Closed
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:cliAffects the PMD Command Line InterfaceAffects the PMD Command Line Interfaceis:deprecationThe main focus is deprecating public APIs or rules, eg to make them internal, or removing themThe main focus is deprecating public APIs or rules, eg to make them internal, or removing them
Milestone
Metadata
Metadata
Assignees
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:cliAffects the PMD Command Line InterfaceAffects the PMD Command Line Interfaceis:deprecationThe main focus is deprecating public APIs or rules, eg to make them internal, or removing themThe main focus is deprecating public APIs or rules, eg to make them internal, or removing them
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
The couple of CLI options
-languageand-versionare used to specify the language version to use when discovering a file for that language. They're virtually not documented, only work when they're specified together (and otherwise just don't do anything, but that doesn't produce a warning), and are not repeatable. Ultimately we could just use a single option and make it repeatable.The option
-minis a single-dash option for--minimum-priority. However, GNU style options allow to combine multiple single-dash options, so-minmeans actually-m -i -n. While we don't support this combination, keeping-minwould prevent us from ever doing so.Describe the solution you'd like
--use-version(as per [core] Migrate CLI to using GNU-style long options #3424) which has arity 2 (language AND version number). It would be used like--use-version java 16.-languageand-version.-minin favor or--minimum-priorityDescribe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Relevant current issues:
--versionCLI option #3425--force-language