From ba39006574776d7fa026c63fce8276378cbdaabb Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 5 Sep 2022 03:47:32 +0200 Subject: [PATCH] [ci]: disable noisy checks (#365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * disable `cert-err33-c` and `readability-identifier-length` check which causes warnings on clang-tidy v14. * disable all "readability" checks by default, instead just opt-into the useful ones (such as duplicate include). Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/365 Reviewed-by: Berke Kocaoğlu --- etc/woodpecker/clang-tidy-checks | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/etc/woodpecker/clang-tidy-checks b/etc/woodpecker/clang-tidy-checks index 3c6c62e..9c016d2 100644 --- a/etc/woodpecker/clang-tidy-checks +++ b/etc/woodpecker/clang-tidy-checks @@ -1,16 +1,13 @@ # checks clang-analyzer-*,clang-diagnostic-*,bugprone-*,performance-*,modernize-* -misc-*,readability-*,android-cloexec-*,cert-* -llvm-include-order +misc-*,android-cloexec-*,cert-*,llvm-include-order +-readability-*,readability-duplicate-include,readability-misleading-indentation # 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 +-android-cloexec-fopen,-android-cloexec-pipe,-cert-err33-c # false positive warnings -clang-analyzer-valist.Uninitialized