mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
Static code analysis can be executed with following commands: meson build ninja -C build analyze-cppcheck ninja -C build analyze-clang-tidy These commands are available only if additional tools are installed: - cppcheck - clang-tidy - clang-tools is optional if you want to paralelize the clang-tidy In case of cppcheck analysis, a file called build/cppchecklog.log is created with the analysis results. In case of clang-tidy analysis, some checks are disabled. See file .clang-tidy, and reenable them if you see fit. Also it does not scan all the files in the project, since some of them are imported from other sources. It does not scan any sources under: - subprojects/ - lib/asn1c/ - lib/ipfw/
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
---
|
|
Checks: '*,
|
|
-altera-id-dependent-backward-branch,
|
|
-altera-struct-pack-align,
|
|
-altera-unroll-loops,
|
|
-android-cloexec-*,
|
|
-bugprone-branch-clone,
|
|
-bugprone-easily-swappable-parameters,
|
|
-bugprone-macro-parentheses,
|
|
-bugprone-reserved-identifier,
|
|
-bugprone-sizeof-expression,
|
|
-cert-dcl37-c,
|
|
-cert-dcl51-cpp,
|
|
-cert-err33-c,
|
|
-cert-err34-c,
|
|
-clang-analyzer-optin.performance.Padding,
|
|
-clang-analyzer-security.insecureAPI.bcmp,
|
|
-clang-analyzer-security.insecureAPI.bcopy,
|
|
-clang-analyzer-security.insecureAPI.bzero,
|
|
-clang-diagnostic-error,
|
|
-clang-diagnostic-typedef-redefinition,
|
|
-clang-diagnostic-unknown-warning-option,
|
|
-concurrency-mt-unsafe,
|
|
-cppcoreguidelines-avoid-magic-numbers,
|
|
-cppcoreguidelines-avoid-non-const-global-variables,
|
|
-cppcoreguidelines-init-variables,
|
|
-google-readability-braces-around-statements,
|
|
-google-readability-casting,
|
|
-google-readability-function-size,
|
|
-google-readability-todo,
|
|
-hicpp-braces-around-statements,
|
|
-hicpp-function-size,
|
|
-hicpp-multiway-paths-covered,
|
|
-llvm-else-after-return,
|
|
-llvm-header-guard,
|
|
-llvm-include-order,
|
|
-llvmlibc-restrict-system-libc-headers,
|
|
-misc-no-recursion,
|
|
-misc-unused-parameters,
|
|
-performance-no-int-to-ptr,
|
|
-readability-avoid-const-params-in-decls,
|
|
-readability-braces-around-statements,
|
|
-readability-duplicate-include,
|
|
-readability-else-after-return,
|
|
-readability-function-cognitive-complexity,
|
|
-readability-function-size,
|
|
-readability-identifier-length,
|
|
-readability-isolate-declaration,
|
|
-readability-magic-numbers,
|
|
-readability-non-const-parameter,
|
|
-readability-redundant-control-flow,
|
|
-readability-redundant-declaration,
|
|
-readability-suspicious-call-argument,
|
|
|
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
|
-bugprone-narrowing-conversions,
|
|
-cert-exp42-c,
|
|
-cert-flp37-c,
|
|
-clang-analyzer-core.NullDereference,
|
|
-clang-analyzer-deadcode.DeadStores,
|
|
-clang-analyzer-security.insecureAPI.strcpy,
|
|
-cppcoreguidelines-interfaces-global-init,
|
|
-cppcoreguidelines-narrowing-conversions,
|
|
-hicpp-signed-bitwise,
|
|
'
|
|
|
|
WarningsAsErrors: false
|
|
HeaderFilterRegex: '(.*\.h)'
|