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 9624e97
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 1 deletion.
115 changes: 114 additions & 1 deletion 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-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",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-copy-constructor-init": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/copy-constructor-init.html",
"profile:default",
Expand All @@ -230,6 +237,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 +293,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 @@ -360,13 +378,25 @@
"profile:sensitive",
"severity:MEDIUM"
],

"bugprone-multiple-statement-macro": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/multiple-statement-macro.html",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-multiple-new-in-one-expression": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/multiple-new-in-one-expression.html",
"guideline:sei-cert",
"profile:default",
"profile:extreme",
"profile:sensitive",
"sei-cert:err51-cpp",
"sei-cert:exp50-cpp",
"sei-cert:mem31-cpp",
"sei-cert:mem51-cpp",
"sei-cert:mem52-cpp",
"severity:HIGH"
],
"bugprone-narrowing-conversions": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/narrowing-conversions.html",
"guideline:sei-cert",
Expand All @@ -385,13 +415,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 @@ -638,6 +680,15 @@
"sei-cert:err51-cpp",
"severity:MEDIUM"
],
"bugprone-unique-ptr-array-mismatch": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unique-ptr-array-mismatch.html",
"guideline:sei-cert",
"profile:default",
"profile:extreme",
"profile:sensitive",
"sei-cert:mem51-cpp",
"severity:MEDIUM"
],
"bugprone-unused-raii": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unused-raii.html",
"profile:default",
Expand Down Expand Up @@ -5123,6 +5174,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,11 +5189,27 @@
"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",
"severity:LOW"
],
"cppcoreguidelines-no-suspend-with-lock": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/no-suspend-with-lock.html",
"severity:MEDIUM"
],
"cppcoreguidelines-non-private-member-variables-in-classes": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/non-private-member-variables-in-classes.html",
"profile:extreme",
Expand Down Expand Up @@ -5603,6 +5676,10 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/misc/const-correctness.html",
"severity:STYLE"
],
"misc-coroutine-hostile-raii": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/misc/coroutine-hostile-raii.html",
"severity:MEDIUM"
],
"misc-dangling-handle": [
"doc_url:https://releases.llvm.org/5.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/misc-dangling-handle.html",
"profile:default",
Expand Down Expand Up @@ -6046,6 +6123,12 @@
"profile:extreme",
"severity:STYLE"
],
"modernize-use-constraints": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-constraints.html",
"profile:extreme",
"profile:sensitive",
"severity:LOW"
],
"modernize-use-default-member-init": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-default-member-init.html",
"profile:extreme",
Expand Down Expand Up @@ -6086,6 +6169,11 @@
"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-trailing-return-type": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-trailing-return-type.html",
"profile:extreme",
Expand Down Expand Up @@ -6227,13 +6315,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 +6523,17 @@
"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-operators-representation": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/operators-representation.html",
"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 9624e97

Please sign in to comment.