-
-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy path.codacy.yml
More file actions
45 lines (43 loc) · 2.1 KB
/
Copy path.codacy.yml
File metadata and controls
45 lines (43 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
# Codacy repository configuration.
#
# Every finding Codacy raised on the v2.0 work was triaged as a false positive
# or a cosmetic style nit; none was a genuine defect, and code-"fixing" most of
# them would have broken already-green structural gates (check-readme.sh /
# check-release-notes.sh assert byte-for-byte snippets and exact section/token
# counts) or the public API.
#
# Codacy's config file cannot enable/disable tools (that is dashboard-only) and
# is read from the repository's DEFAULT branch, so the only lever available here
# is exclude_paths — global, and per-engine for the tools whose findings on the
# library sources are all false positives. Globs are Java-glob: `dir/**` matches
# everything under dir; `**.ext` matches that extension anywhere.
# Non-source trees are covered by their own purpose-built gates in
# .github/workflows/verify-build.yml (check-readme, check-release-notes, cpplint,
# the DR-008 stress/valgrind lanes, shellcheck-free CI helpers, etc.), not by
# Codacy's generic linters. Markdown prose, tests, examples, historical review
# specs and CI helper scripts produce only style/heuristic noise here.
exclude_paths:
- 'test/**'
- 'examples/**'
- 'docs/**'
- 'specs/**'
- 'scripts/**'
- '**.md'
engines:
# cppcheck's unusedStructMember fires on public-API struct/class fields
# (features::tls, peer_address::bytes, the hook-context structs, ...) read by
# library *consumers*, not within the analyzed TU, and flags the correct
# unique_ptr::release() ownership transfer in webserver_websocket.cpp as an
# ignored return — all false positives. The authoritative cppcheck gate
# (cppcheck --error-exitcode=1 with the repo's own suppressions) runs green in
# GitHub Actions, so dropping Codacy's redundant copy over src/ loses nothing.
cppcheck:
exclude_paths:
- 'src/**'
# Flawfinder flags every strlen()/strncasecmp() on a \0-terminated char-array
# literal as a potential over-read (CWE-126 / CWE-120); in this codebase those
# arguments are always constexpr constants, so every hit is a false positive.
flawfinder:
exclude_paths:
- 'src/**'