Repository navigation
[cli] Add the missing exit code 5 to the CLI help - #7090
Merged
Merged
Conversation
Contributor
|
Compared to main: (comment created at 2026-09-24 15:06:50+00:00 for 9ac7f39) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Describe the PR
The
Exit Codes:block in the CLI help lists 0, 1, 2 and 4. PMD has returned 5 since 7.3.0 and 7.27 is out now, so the help is the last place still describing the 7.0.0 set.The exit code itself is fine, it's the annotation on the root command that went stale. #4991 added code 5 and updated the enum, the CLI reference, the CPD page and the ant docs, and the four-entry list in the help was the one place it didn't reach. Nothing in the repo asserts that text, so nothing went red. That's a bit more annoying than a missing line usually is, because 5 is the default: it takes
--no-fail-on-errorto turn it off, so one unparsable file gets you an exit code the help doesn't mention.I've gone with
5:Analysis finished, at least 1 recoverable error occurredso it reads alongside the code-4 line. The docs table words it "At least one recoverable error has occurred", which would do just as well, so don't treat the exact string as settled. I havent built PMD locally, so that wording is read off the annotation rather than off real help output.I've left
release_notes.mdalone too, since every line under Fixed Issues hangs off an issue number and there isnt one here.Output before:
Output with this PR:
Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)