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 3, 2024
1 parent db63181 commit 4bdfe69
Show file tree
Hide file tree
Showing 2 changed files with 401 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 @@ -153,7 +153,7 @@ def test_checkers_guideline(self):
_, out, _ = run_cmd(checkers_cmd)

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

checkers_cmd = [env.codechecker_cmd(), 'checkers',
'--guideline', 'sei-cert:mem35-c']
Expand Down
Loading

0 comments on commit 4bdfe69

Please sign in to comment.