Repository navigation
docs: add a cpp-linter badge section and pin the badge workflow to a release #510
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f027b5b
chore: run cpp-linter workflow against the checked-out action
shenxianpeng 72bb2d9
chore: remove cpp-linter workflow covered by self-test
shenxianpeng 1b661d9
chore: keep cpp-linter workflow for users' README badges
shenxianpeng 5a20237
docs: add a cpp-linter badge section to the README
shenxianpeng 3e6a590
chore: pin cpp-linter workflow to the latest release
shenxianpeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Make lint failures fail this workflow.
When
steps.linter.outputs.checks-failed != 0, the workflow only prints a message. Line [28] also allows the linter step to continue, and Line [43] leavesexit 1commented out. The workflow therefore succeeds when lint checks fail, so the retained status badge can report success for a failed lint run. Enablerun: exit 1in this branch.Also applies to: 37-43
🤖 Prompt for AI Agents
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.
That's what self-test CI does.
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.
@2bndy5 You're right.
self-test.ymlprovides the CI enforcement. This workflow serves as a demo and preserves existing badge URLs, so it does not need to duplicate that enforcement. I withdraw this finding.✅ Review thread resolved.
You are interacting with an AI system.
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.
That's right. The reason I didn't write it that way is mainly because I treated it as an example for user reference when they click the badge to jump into the GitHub workflow. That's why I used the commit hash followed by the version number.
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.