-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
30 lines (25 loc) · 987 Bytes
/
Copy path.clang-tidy
File metadata and controls
30 lines (25 loc) · 987 Bytes
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
---
# clang-tidy configuration for Cataract CSS parser
# Based on Ada URL parser's config: https://github.com/ada-url/ada
Checks: >
bugprone-*,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions,
-bugprone-suspicious-include,
-bugprone-unhandled-exception-at-new,
clang-analyzer-*,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: '*'
# Check first-party headers only (our own code in ext/cataract/)
HeaderFilterRegex: 'ext/cataract/.*\.h$'
# Don't check system headers (Ruby C API headers)
SystemHeaders: false
# Ruby C extension specific suppressions
# (Add more as needed based on Ruby API conventions)
CheckOptions:
# Ruby API uses long parameter lists (e.g., rb_struct_define_under)
- key: bugprone-easily-swappable-parameters.MinimumLength
value: 4