Skip to content

Commit

Permalink
Adding new checkers to profiles and assigning severities
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrupp committed Dec 8, 2023
1 parent b64e79e commit 8217ea7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/labels/analyzers/clang-tidy.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@
"profile:sensitive",
"severity:LOW"
],
"bugprone-casting-through-void": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/casting-through-void.html",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],

"bugprone-compare-pointer-to-member-virtual-function": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/compare-pointer-to-member-virtual-function.html",
"profile:default",
Expand Down Expand Up @@ -6164,11 +6171,22 @@
"profile:extreme",
"severity:LOW"
],
"modernize-use-starts-ends-with": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-starts-ends-with.html",
"profile:extreme",
"severity:LOW"
],
"modernize-use-std-print": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-std-print.html",
"profile:extreme",
"severity:LOW"
],
"modernize-use-std-numbers": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-std-numbers.html",
"profile:extreme",
"severity:LOW"
],

"modernize-use-trailing-return-type": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-trailing-return-type.html",
"profile:extreme",
Expand Down
17 changes: 17 additions & 0 deletions config/labels/analyzers/clangsa.json
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,16 @@
"osx.coreFoundation.containers.PointerSizedValues": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#osx-corefoundation-containers-pointersizedvalues-c"
],
"security.cert.env.InvalidPtr": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#security-cert-env-invalidptr",
"profile:default",
"profile:sensitive",
"profile:extreme",
"profile:security",
"severity:MEDIUM",
"sei-cert:env31-c",
"sei-cert:env34-c"
],
"security.FloatLoopCounter": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#security-floatloopcounter-c",
"guideline:sei-cert",
Expand Down Expand Up @@ -914,6 +924,13 @@
"profile:extreme",
"profile:sensitive"
],
"unix.Errno": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#unix-errno-c",
"profile:sensitive",
"profile:extreme",
"severity:HIGH"
],

"unix.Malloc": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#unix-malloc-c",
"guideline:sei-cert",
Expand Down

0 comments on commit 8217ea7

Please sign in to comment.