Skip to content

Commit

Permalink
chore(config): [clang-tidy] Update SEI-CERT Guideline mappings
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
whisperity committed May 9, 2024
1 parent 4395c79 commit a149cbf
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 93 deletions.
2 changes: 1 addition & 1 deletion analyzer/tests/functional/cmdline/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_checkers_guideline(self):
'--guideline', 'sei-cert']
_, out, _ = run_cmd(checkers_cmd)

self.assertIn('cert-str34-c', out)
self.assertIn('cert-dcl58-cpp', out)
self.assertNotIn('android', out)

checkers_cmd = [env.codechecker_cmd(), 'checkers',
Expand Down
Loading

0 comments on commit a149cbf

Please sign in to comment.