mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 18:23:42 +00:00
Rename the project to shadowsocks-c while retaining ss-* commands, the embedding ABI, and legacy library/package lookup compatibility.
Replace libev with bundled libuv for IOCP/kqueue event backends, expand asynchronous runtime DNS coverage, and add actionlint/Ruff with strict clang-tidy failure handling. Validate native platforms, static builds, packaging, interoperability, sanitizers, and canonical/legacy consumers.
All 22 hosted checks pass at reviewed head a8493250eb.
37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
# clang-tidy configuration for shadowsocks-c project sources (src/ only).
|
|
# Bundled sources under third_party/ and src/blake3/ are third-party code and
|
|
# are excluded by the file regex used in CI:
|
|
# run-clang-tidy -p build '/src/[^/]+\.c$'
|
|
#
|
|
# The check set is intentionally conservative: the full clang static analyzer
|
|
# plus the bugprone/cert checks that are actionable for this codebase.
|
|
# Checks disabled below are either stylistic churn (macro-parentheses,
|
|
# reserved-identifier: the codebase uses _prefixed names and vendored
|
|
# uthash.h/generated config.h trip them ~600 times) or produce false
|
|
# positives with the event callback style (casting-through-void,
|
|
# multi-level-implicit-pointer-conversion).
|
|
Checks: >
|
|
clang-analyzer-*,
|
|
bugprone-*,
|
|
cert-*,
|
|
-bugprone-assignment-in-if-condition,
|
|
-bugprone-branch-clone,
|
|
-bugprone-casting-through-void,
|
|
-bugprone-easily-swappable-parameters,
|
|
-bugprone-inc-dec-in-conditions,
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
|
-bugprone-macro-parentheses,
|
|
-bugprone-multi-level-implicit-pointer-conversion,
|
|
-bugprone-narrowing-conversions,
|
|
-bugprone-reserved-identifier,
|
|
-bugprone-signed-char-misuse,
|
|
-bugprone-switch-missing-default-case,
|
|
-cert-dcl37-c,
|
|
-cert-dcl51-cpp,
|
|
-cert-err33-c,
|
|
-cert-str34-c,
|
|
-clang-analyzer-security.insecureAPI.strcpy,
|
|
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
|
|
WarningsAsErrors: ''
|
|
HeaderFilterRegex: '.*/src/[^/]+\.h$'
|