-
Notifications
You must be signed in to change notification settings - Fork 39
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
Exempt picocli.CommandLine.Option#names
annotation attribute from reordering
#1056
Conversation
Looks good. No mutations were possible for these changes. |
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.
Tnx @rickie! I do seem to recall that this parameter cares about the order in which names are listed, but I forgot the details, and the documentation seems silent about this. What goes wrong without this change?
(Sorry for asking rather than checking myself; rather short on time atm 😬.)
As discussed offline; for some CLI's, like the one in Checkstyle, it's just that a specific order is required. The options are expected or sorted in a specific order and therefore we shouldn't want to change this. |
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.
More explicitly: the order in which flags are listed influences the order in which they are rendered in the generated help text. That is, there's a clear functional impact to the order.
5564444
to
1bdf1c4
Compare
Looks good. No mutations were possible for these changes. |
Quality Gate passedIssues Measures |
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.
Clean 🥇
Suggested commit message:
|
@Stephan202 we could go for this as alternative:
As it will be under 80 chars, WDYT? |
The
|
As part of checkstyle/checkstyle#14137 I'm enabling the
LexicographicalAnnotationAttributeListing
check. I encountered a problem related to this: https://github.com/PicnicSupermarket/error-prone-support/blob/master/integration-tests/checkstyle-init.patch#L78.Therefore I'm filing this PR.