-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.cppcheck-suppressions
More file actions
42 lines (33 loc) · 1.05 KB
/
.cppcheck-suppressions
File metadata and controls
42 lines (33 loc) · 1.05 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
# Cppcheck suppressions for ThemisDB
# Format: [error_id]:[file_pattern]:[line]
# Use * for wildcard matching
# Suppress system/library headers
missingIncludeSystem
unmatchedSuppression
# Suppress unused function warnings (may be used by external modules)
unusedFunction
# Known false positives in third-party code
*:vcpkg_installed/*
*:build/*
*:*/crow/*
*:*/nlohmann/*
*:*/rocksdb/*
# Test files - allow more flexible patterns
unusedFunction:tests/*
unusedVariable:tests/*
knownConditionTrueFalse:tests/*
# Benchmark files - performance-critical, intentional patterns
*:benchmarks/bench_*.cpp
# JSON parsing - intentional null checks
nullPointer:*/json_utils.cpp
nullPointerRedundantCheck:*/json_utils.cpp
# RocksDB integration - complex pointer usage
cstyleCast:*/storage_engine.cpp
cstyleCast:*/index_manager.cpp
# HTTP server - Crow framework patterns
shadowVariable:*/http_server.cpp
shadowVariable:*/http_handlers.cpp
variableScope:*/http_server.cpp
# Vector search - SIMD/performance-critical code
useStlAlgorithm:*/vector_index.cpp
cstyleCast:*/vector_index.cpp