-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
chore: Improve ci-checkstyle-javadoc.sh usability #3924
chore: Improve ci-checkstyle-javadoc.sh usability #3924
Conversation
elif [[ $compare_num_errors < $current_num_errors ]]; then | ||
elif [ $compare_num_errors -lt $current_num_errors ]; then |
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.
Technically, this is a bugfix masquerading as a compatibility improvement, as <
in extended expression syntax actually does a lexicographical comparison. That is to say, something like [[ 10000 < 2 ]]
evaluates to true, whereas -lt
actually does a numeric less-than comparison (and is equivalent to (( 1000 < 2 ))
, note round brackets). Oopsie!
This is curious, the PR failed a unit test, even though it doesn't do anything with the test suite or production code: https://github.com/INRIA/spoon/pull/3924/checks?check_run_id=2598716911#step:10:480
Flaky? |
Yep, flaky, closing and re-opening caused the workflow to pass. |
LGTM, will merge. |
Fix #3922
This PR improves the usability of the method Javadoc quality script, and links to the issue related to using it #3923. Additionally, non-POSIX-compliant comparisons have been removed to make the script compatible with more shells.
In terms of output, if the script failed in CI it would previously just print the amount of errors, but now ALSO prints this:
Local use has also been improved, here's the help output:
And, an example execution:
All-in-all, this makes the script actually useful for improving the docs!