[ci]: disable noisy checks (#365)

* 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 <berke.kocaoglu@metu.edu.tr>
This commit is contained in:
NRK 2022-09-05 03:47:32 +02:00
parent 32bfe58915
commit ba39006574

View File

@ -1,16 +1,13 @@
# checks # checks
clang-analyzer-*,clang-diagnostic-*,bugprone-*,performance-*,modernize-* clang-analyzer-*,clang-diagnostic-*,bugprone-*,performance-*,modernize-*
misc-*,readability-*,android-cloexec-*,cert-* misc-*,android-cloexec-*,cert-*,llvm-include-order
llvm-include-order -readability-*,readability-duplicate-include,readability-misleading-indentation
# silence # silence
-misc-unused-parameters -misc-unused-parameters
-bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-bugprone-incorrect-roundings -bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-bugprone-incorrect-roundings
-bugprone-implicit-widening-of-multiplication-result,-bugprone-integer-division -bugprone-implicit-widening-of-multiplication-result,-bugprone-integer-division
-readability-braces-around-statements,-readability-magic-numbers,-readability-isolate-declaration -android-cloexec-fopen,-android-cloexec-pipe,-cert-err33-c
-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 # false positive warnings
-clang-analyzer-valist.Uninitialized -clang-analyzer-valist.Uninitialized