From f23d57d4ada2dbab52e26073d462ebee57cf53a9 Mon Sep 17 00:00:00 2001 From: NRK Date: Wed, 15 Jun 2022 11:55:16 +0600 Subject: [ci]: use cppcheck and clang-tidy for static analysis --- .woodpecker/clang-tidy-checks | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .woodpecker/clang-tidy-checks (limited to '.woodpecker/clang-tidy-checks') diff --git a/.woodpecker/clang-tidy-checks b/.woodpecker/clang-tidy-checks new file mode 100644 index 0000000..67394d4 --- /dev/null +++ b/.woodpecker/clang-tidy-checks @@ -0,0 +1,16 @@ +# checks +clang-analyzer-*,clang-diagnostic-*,bugprone-*,performance-*,modernize-* +misc-*,readability-*,android-cloexec-*,cert-* + +# silence +-misc-unused-parameters +-bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-bugprone-incorrect-roundings +-bugprone-implicit-widening-of-multiplication-result,-bugprone-integer-division +-readability-braces-around-statements,-readability-magic-numbers,-readability-isolate-declaration +-readability-function-cognitive-complexity,-readability-else-after-return +-readability-uppercase-literal-suffix,-readability-avoid-const-params-in-decls +-android-cloexec-fopen,-android-cloexec-pipe + +# false positive warnings +-clang-analyzer-valist.Uninitialized +-misc-no-recursion -- cgit v1.2.3