mirror of
https://github.com/yshui/picom.git
synced 2024-11-18 13:55:36 -05:00
7c15a1438a
1. Increase cognitive complexity threshold to 50. The default value of 25 marks a lot of functions, which is too noisy to be useful. 2. Ignore int8_t in signed char to integer conversion check. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
31 lines
936 B
YAML
31 lines
936 B
YAML
Checks: >
|
|
readability-*,
|
|
performance-*,
|
|
modernize-*,
|
|
google-readability-todo,
|
|
cert-err34-c,
|
|
cert-flp30-c,
|
|
bugprone-*,
|
|
misc-misplaced-const,
|
|
misc-redundant-expression,
|
|
misc-static-assert,
|
|
-clang-analyzer-*,
|
|
-readability-isolate-declaration,
|
|
-readability-magic-numbers,
|
|
-readability-identifier-length,
|
|
-bugprone-easily-swappable-parameters
|
|
AnalyzeTemporaryDtors: false
|
|
FormatStyle: file
|
|
CheckOptions:
|
|
- key: readability-magic-numbers.IgnoredIntegerValues
|
|
value: 4;8;16;24;32;1;2;3;4096;65536;
|
|
- key: readability-magic-numbers.IgnoredFloatingPointValues
|
|
value: 255.0;1.0;
|
|
- key: readability-function-cognitive-complexity.IgnoreMacros
|
|
value: true
|
|
- key: readability-function-cognitive-complexity.Threshold
|
|
value: 50
|
|
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
|
|
value: true
|
|
- key: bugprone-signed-char-misuse.CharTypdefsToIgnore
|
|
value: int8_t
|