Skip to content

Commit

Permalink
Merge pull request #4193 from sylvestre/checker2
Browse files Browse the repository at this point in the history
[config] Label Clang 18.0-19.trunk SA & Tidy checkers
  • Loading branch information
whisperity authored Apr 25, 2024
2 parents 1cc23c7 + a8208b8 commit 0aa460f
Show file tree
Hide file tree
Showing 3 changed files with 103 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 @@ -210,6 +210,13 @@
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-chained-comparison": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/chained-comparison.html",
"profile:default",
"profile:extreme",
"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",
Expand All @@ -224,6 +231,12 @@
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-crtp-constructor-accessibility": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/crtp-constructor-accessibility.html",
"profile:extreme",
"profile:sensitive",
"severity:LOW"
],
"bugprone-dangling-handle": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/dangling-handle.html",
"profile:default",
Expand Down Expand Up @@ -610,6 +623,13 @@
"profile:sensitive",
"severity:MEDIUM"
],
"bugprone-suspicious-stringview-data-usage": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/suspicious-stringview-data-usage.html",
"profile:default",
"profile:extreme",
"profile:sensitive",
"severity:HIGH"
],
"bugprone-swapped-arguments": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/swapped-arguments.html",
"profile:default",
Expand Down Expand Up @@ -695,6 +715,12 @@
"sei-cert:mem51-cpp",
"severity:MEDIUM"
],
"bugprone-unused-local-non-trivial-variable": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unused-local-non-trivial-variable.html",
"profile:extreme",
"profile:sensitive",
"severity:LOW"
],
"bugprone-unused-raii": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unused-raii.html",
"profile:default",
Expand Down Expand Up @@ -5494,6 +5520,10 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/hicpp/function-size.html",
"severity:LOW"
],
"hicpp-ignored-remove-result": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/hicpp/ignored-remove-result.html",
"severity:MEDIUM"
],
"hicpp-invalid-access-moved": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/hicpp/invalid-access-moved.html",
"severity:HIGH"
Expand Down Expand Up @@ -6141,6 +6171,10 @@
"profile:extreme",
"severity:STYLE"
],
"modernize-use-designated-initializers": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-designated-initializers.html",
"severity:STYLE"
],
"modernize-use-nodiscard": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-nodiscard.html",
"profile:extreme",
Expand Down Expand Up @@ -6379,6 +6413,14 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-const-params-in-decls.html",
"severity:STYLE"
],
"readability-avoid-nested-conditional-operator": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-nested-conditional-operator.html",
"severity:STYLE"
],
"readability-avoid-return-with-void-value": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-return-with-void-value.html",
"severity:LOW"
],
"readability-avoid-unconditional-preprocessor-if": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-unconditional-preprocessor-if.html",
"severity:STYLE"
Expand Down Expand Up @@ -6429,6 +6471,14 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/else-after-return.html",
"severity:STYLE"
],
"readability-enum-initial-value": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/enum-initial-value.html",
"guideline:sei-cert",
"profile:sensitive",
"profile:extreme",
"sei-cert:int09-c",
"severity:LOW"
],
"readability-function-cognitive-complexity": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/function-cognitive-complexity.html",
"severity:STYLE"
Expand Down Expand Up @@ -6493,6 +6543,10 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-access-specifiers.html",
"severity:STYLE"
],
"readability-redundant-casting": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-casting.html",
"severity:STYLE"
],
"readability-redundant-control-flow": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-control-flow.html",
"severity:STYLE"
Expand All @@ -6505,6 +6559,10 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-function-ptr-dereference.html",
"severity:STYLE"
],
"readability-redundant-inline-specifier": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-inline-specifier.html",
"severity:STYLE"
],
"readability-redundant-member-init": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html",
"severity:STYLE"
Expand Down Expand Up @@ -6573,6 +6631,10 @@
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/use-anyofallof.html",
"severity:STYLE"
],
"readability-use-std-min-max": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/readability/use-std-min-max.html",
"severity:STYLE"
],
"zircon-temporary-objects": [
"doc_url:https://clang.llvm.org/extra/clang-tidy/checks/zircon/temporary-objects.html",
"severity:STYLE"
Expand Down
23 changes: 23 additions & 0 deletions config/labels/analyzers/clangsa.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@
"profile:sensitive",
"severity:MEDIUM"
],
"alpha.cplusplus.ArrayDelete": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#alpha-cplusplus-arraydelete-c",
"guideline:sei-cert",
"profile:extreme",
"profile:sensitive",
"sei-cert:exp51-cpp",
"severity:HIGH"
],
"alpha.cplusplus.ContainerModeling": [
"profile:extreme",
"profile:sensitive"
Expand Down Expand Up @@ -496,6 +504,15 @@
"profile:extreme",
"severity:HIGH"
],
"cplusplus.ArrayDelete": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#cplusplus-arraydelete-c",
"guideline:sei-cert",
"profile:default",
"profile:extreme",
"profile:sensitive",
"sei-cert:exp51-cpp",
"severity:HIGH"
],
"cplusplus.InnerPointer": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#cplusplus-innerpointer-c",
"guideline:sei-cert",
Expand Down Expand Up @@ -672,6 +689,12 @@
"profile:sensitive",
"severity:MEDIUM"
],
"optin.core.EnumCastOutOfRange": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#optin-core-enumcastoutofrange-c-c",
"profile:extreme",
"profile:sensitive",
"severity:MEDIUM"
],
"optin.cplusplus.UninitializedObject": [
"doc_url:https://clang.llvm.org/docs/analyzer/checkers.html#optin-cplusplus-uninitializedobject-c",
"profile:default",
Expand Down
18 changes: 18 additions & 0 deletions config/labels/analyzers/cppcheck.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@
"profile:default",
"severity:HIGH"
],
"cppcheck-cppcheckLimit": [
"severity:CRITICAL"
],
"cppcheck-cstyleCast": [
"severity:STYLE"
],
Expand Down Expand Up @@ -333,10 +336,19 @@
"cppcheck-initializerList": [
"severity:STYLE"
],
"cppcheck-instantiationError": [
"severity:CRITICAL"
],
"cppcheck-integerOverflow": [
"profile:default",
"severity:HIGH"
],
"cppcheck-internalAstError": [
"severity:CRITICAL"
],
"cppcheck-internalError": [
"severity:CRITICAL"
],
"cppcheck-invalidContainer": [
"profile:default",
"severity:HIGH"
Expand Down Expand Up @@ -930,6 +942,9 @@
"profile:default",
"severity:MEDIUM"
],
"cppcheck-syntaxError": [
"severity:CRITICAL"
],
"cppcheck-thisSubtraction": [
"profile:default",
"severity:MEDIUM"
Expand Down Expand Up @@ -992,6 +1007,9 @@
"profile:default",
"severity:HIGH"
],
"cppcheck-unknownMacro": [
"severity:CRITICAL"
],
"cppcheck-unknownSignCharArrayIndex": [
"severity:LOW"
],
Expand Down

0 comments on commit 0aa460f

Please sign in to comment.