-
Notifications
You must be signed in to change notification settings - Fork 447
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
Provide hints on how to fix CI complaints. #4355
Conversation
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.
Useful change for new contributors 👍
cmake/Linters.cmake
Outdated
@@ -71,7 +71,7 @@ if(NOT ${CLANG_FORMAT_CMD}) | |||
set(CLANG_FORMAT_CMD clang-format) | |||
add_custom_target( | |||
clang-format | |||
COMMAND xargs -a ${CLANG_FORMAT_TXT_FILE} -r -d '\;' ${CLANG_FORMAT_CMD} --verbose --Werror --dry-run -i -- | |||
COMMAND xargs -a ${CLANG_FORMAT_TXT_FILE} -r -d '\;' ${CLANG_FORMAT_CMD} --verbose --Werror --dry-run -i -- || echo ${RED}clang-format failed. Run \"make clang-format-fix-errors\" to fix the complaints.${COLOURRESET} |
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.
Hmm, wouldn't this hide the return code of check? Therefore the test would succeed even if a problem was found?
Putting the "request for changes" here mainly because this is already approved.
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.
Thanks for catching this. Getting sloppy recently...
837dea3
to
8ad40e9
Compare
8ad40e9
to
ea7f727
Compare
(I've clicked the rebase button to unblock merging) |
Provide some helpful hints on how to fix the linter complaints.