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

chore(config): [clang-tidy] Update SEI-CERT Guideline mappings #4235

Conversation

whisperity
Copy link
Contributor

Important

Blocked by #4224.

Ensure that checkers that target SEI CERT C & C++ guideline rules and recommendations are appropriately labelled as such: guideline:sei-cert, profile:security, and the guideline label.

In case the checker is implemented through an alias (or even multiple aliases), apply the labels to only the main checker, and strip the profile and guidelines associations from the aliases. (Due to the lack of proper alias handling in both Clang-Tidy and CodeChecker, firing all aliases would result in multiple detections of the same match.)

Ensure, in addition, that profile:default and profile:sensitive checkers are also always in the more broad superset profiles profile:sensitive and profile:extreme.

@whisperity whisperity added analyzer 📈 Related to the analyze commands (analysis driver) clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. config ⚙️ labels May 3, 2024
@whisperity whisperity added this to the release 6.24.0 milestone May 3, 2024
@whisperity whisperity requested a review from dkrupp May 3, 2024 12:38
@whisperity whisperity changed the title Chore/config/clang tidy sei cert guideline mapping chore(config): [clang-tidy] Update SEI-CERT Guideline mappings May 3, 2024
@whisperity whisperity added the RDY-OnHold 🛑 Patch reviewed and ready, but don't merge due to having to merge a dependent patch first. label May 3, 2024
@whisperity whisperity force-pushed the chore/config/clang-tidy-sei-cert-guideline-mapping branch from c26fe95 to 4bdfe69 Compare May 3, 2024 13:02
Ensure that checkers that target SEI CERT C & C++ guideline rules and
recommendations are appropriately labelled as such:
`guideline:sei-cert`, `profile:security`, and the guideline label.

In case the checker is implemented through an alias (or even multiple
aliases), apply the labels to **only** the **main** checker, and strip
the profile and guidelines associations from the aliases.
(Due to the lack of proper alias handling in both Clang-Tidy and
CodeChecker, firing all aliases would result in multiple detections of
the same match.)

Ensure, in addition, that `profile:default` and `profile:sensitive`
checkers are also always in the more broad superset profiles
`profile:sensitive` and `profile:extreme`.
@whisperity whisperity force-pushed the chore/config/clang-tidy-sei-cert-guideline-mapping branch from 4bdfe69 to a149cbf Compare May 9, 2024 14:43
@whisperity whisperity marked this pull request as ready for review May 9, 2024 14:44
@whisperity whisperity requested review from bruntib and vodorok as code owners May 9, 2024 14:44
@whisperity whisperity removed the RDY-OnHold 🛑 Patch reviewed and ready, but don't merge due to having to merge a dependent patch first. label May 9, 2024
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dkrupp dkrupp merged commit f7807ae into Ericsson:master May 13, 2024
8 of 9 checks passed
@whisperity whisperity deleted the chore/config/clang-tidy-sei-cert-guideline-mapping branch May 13, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. config ⚙️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants