Skip to content

Commit

Permalink
chore(config): Add labels for new checks of Clang SA & Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
whisperity committed Oct 19, 2023
1 parent fcd5f23 commit a50223a
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
62 changes: 62 additions & 0 deletions config/labels/analyzers/clang-tidy.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
"profile:extreme",
"severity:STYLE"
],
"bugprone-empty-catch": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/empty-catch.html",
"severity:STYLE"
],
"bugprone-exception-escape": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/exception-escape.html",
"guideline:sei-cert",
Expand Down Expand Up @@ -282,6 +286,13 @@
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-incorrect-enable-if": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/incorrect-enable-if.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:HIGH"
],
"bugprone-incorrect-roundings": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/incorrect-roundings.html",
"profile:default",
Expand Down Expand Up @@ -385,13 +396,25 @@
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-non-zero-enum-to-bool-conversion": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/non-zero-enum-to-bool-conversion.html",
"profile:extreme",
"severity:STYLE"
],
"bugprone-not-null-terminated-result": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/not-null-terminated-result.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-optional-value-conversion": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/optional-value-conversion.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:LOW"
],
"bugprone-parent-virtual-call": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/parent-virtual-call.html",
"profile:extreme",
Expand Down Expand Up @@ -5123,6 +5146,12 @@
"profile:extreme",
"severity:LOW"
],
"cppcoreguidelines-misleading-capture-default-by-value": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/misleading-capture-default-by-value.html",
"profile:extreme",
"profile:sensitive",
"severity:LOW"
],
"cppcoreguidelines-missing-std-forward": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/missing-std-forward.html",
"profile:extreme",
Expand All @@ -5132,6 +5161,18 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/narrowing-conversions.html",
"severity:MEDIUM"
],
"cppcoreguidelines-noexcept-destructor": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/noexcept-destructor.html",
"severity:MEDIUM"
],
"cppcoreguidelines-noexcept-move-operations": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/noexcept-move-operations.html",
"severity:MEDIUM"
],
"cppcoreguidelines-noexcept-swap": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/noexcept-swap.html",
"severity:MEDIUM"
],
"cppcoreguidelines-no-malloc": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/no-malloc.html",
"profile:extreme",
Expand Down Expand Up @@ -6227,13 +6268,27 @@
"profile:sensitive",
"severity:LOW"
],
"performance-noexcept-destructor": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/performance/noexcept-destructor.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"performance-noexcept-move-constructor": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/performance/noexcept-move-constructor.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"performance-noexcept-swap": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/performance/noexcept-swap.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"performance-trivially-destructible": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/performance/trivially-destructible.html",
"profile:default",
Expand Down Expand Up @@ -6421,6 +6476,13 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-string-init.html",
"severity:STYLE"
],
"readability-reference-to-constructed-temporary": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/reference-to-constructed-temporary.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:STYLE"
],
"readability-simplify-boolean-expr": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/simplify-boolean-expr.html",
"severity:MEDIUM"
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 @@ -327,6 +327,15 @@
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#alpha-webkit-uncountedlocalvarschecker",
"profile:extreme"
],
"core.BitwiseShift": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#core-bitwiseshift-c-c",
"guideline:sei-cert",
"profile:default",
"profile:extreme",
"profile:sensitive",
"sei-cert:int34-c",
"severity:HIGH"
],
"core.CallAndMessage": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#core-callandmessage-c-c-objc",
"guideline:sei-cert",
Expand Down Expand Up @@ -934,6 +943,14 @@
"sei-cert:mem51-cpp",
"severity:MEDIUM"
],
"unix.StdCLibraryFunctions": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#unix-stdclibraryfunctions-c",
"profile:default",
"profile:extreme",
"profile:sensitive",
"profile:security",
"severity:HIGH"
],
"unix.Vfork": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#unix-vfork-c",
"guideline:sei-cert",
Expand Down

0 comments on commit a50223a

Please sign in to comment.