From a50223a717e68017874de3d2ff24a798b0f89213 Mon Sep 17 00:00:00 2001 From: Whisperity Date: Thu, 19 Oct 2023 17:36:16 +0200 Subject: [PATCH] chore(config): Add labels for new checks of Clang SA & Tidy --- config/labels/analyzers/clang-tidy.json | 62 +++++++++++++++++++++++++ config/labels/analyzers/clangsa.json | 17 +++++++ 2 files changed, 79 insertions(+) diff --git a/config/labels/analyzers/clang-tidy.json b/config/labels/analyzers/clang-tidy.json index 0fef0a727b..af33179536 100644 --- a/config/labels/analyzers/clang-tidy.json +++ b/config/labels/analyzers/clang-tidy.json @@ -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", @@ -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", @@ -385,6 +396,11 @@ "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", @@ -392,6 +408,13 @@ "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", @@ -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", @@ -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", @@ -6227,6 +6268,13 @@ "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", @@ -6234,6 +6282,13 @@ "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", @@ -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" diff --git a/config/labels/analyzers/clangsa.json b/config/labels/analyzers/clangsa.json index 9c10131657..1f7b104a51 100644 --- a/config/labels/analyzers/clangsa.json +++ b/config/labels/analyzers/clangsa.json @@ -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", @@ -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",