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
add usage-strings ci check and amend remaining usage strings #1147
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -492,6 +492,17 @@ static void parse_options_check(const struct option *opts) | |
default: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Johannes Schindelin wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Johannes Schindelin wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
|
||
; /* ok. (usually accepts an argument) */ | ||
} | ||
|
||
// OPTION_GROUP should be ignored | ||
// if the first two characters of the help string are uppercase, then assume it is an | ||
// acronym (i.e. "GPG") or special name (i.e. "HEAD"), thus allowed. | ||
// else assume the usage string is violating the style convention and throw error. | ||
if (opts->type != OPTION_GROUP && opts->help && | ||
opts->help[0] && isupper(opts->help[0]) && | ||
!(opts->help[1] && isupper(opts->help[1]))) | ||
err |= optbug(opts, xstrfmt("help should not start with capital letter unless needed: %s", opts->help)); | ||
if (opts->help && !ends_with(opts->help, "...") && ends_with(opts->help, ".")) | ||
err |= optbug(opts, xstrfmt("help should not end with a dot: %s", opts->help)); | ||
if (opts->argh && | ||
strcspn(opts->argh, " _") != strlen(opts->argh)) | ||
err |= optbug(opts, "multi-word argh should use dash to separate words"); | ||
|
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.
On the Git mailing list, Junio C Hamano wrote (reply to 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.
On the Git mailing list, Abhradeep Chakraborty wrote (reply to 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.
On the Git mailing list, Junio C Hamano wrote (reply to 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.
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):