Skip to content
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

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Provide hints on how to fix CI complaints. #4355

merged 2 commits into from
Jan 26, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Jan 24, 2024

Provide some helpful hints on how to fix the linter complaints.

Copy link
Member

@thomascalvert-xlnx thomascalvert-xlnx left a 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 👍

@@ -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}
Copy link
Contributor

@vlstill vlstill Jan 25, 2024

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.

Copy link
Collaborator Author

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...

@fruffy fruffy enabled auto-merge (squash) January 25, 2024 21:01
@fruffy fruffy requested a review from vlstill January 25, 2024 23:25
@vlstill
Copy link
Contributor

vlstill commented Jan 26, 2024

(I've clicked the rebase button to unblock merging)

@fruffy fruffy merged commit 8690603 into main Jan 26, 2024
16 checks passed
@fruffy fruffy deleted the fruffy/ci_hints branch January 26, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants