-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathsuppressions.txt
More file actions
70 lines (53 loc) · 1.84 KB
/
Copy pathsuppressions.txt
File metadata and controls
70 lines (53 loc) · 1.84 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// cppcheck suppressions
assertWithSideEffect
// TODO: need to come back to these
duplInheritedMember
// TODO:
// "Using memset() on struct which contains a floating point number."
// tried:
// if (std::is_floating_point<T>::value) {
// p = 0;
// in src/mesh/MemoryPool.h
memsetClassFloat
knownConditionTrueFalse
// no real downside/harm in these
unusedFunction
unusedPrivateFunction
// most likely due to a cppcheck configuration issue (like missing an include)
syntaxError
// try to quiet a few
//useInitializationList:src/main.cpp
useInitializationList
//unreadVariable:src/graphics/Screen.cpp
unreadVariable
// I don't want to go back and cast function pointers just to appease a tools insatiable thirst for immutability
constParameterCallback
redundantInitialization
//cstyleCast:src/mesh/MemoryPool.h:71
cstyleCast
// ignore stuff that is not ours
*:.pio/*
*:*/libdeps/*
*:*/generated/*
// emscripten-only wasm node: EM_ASYNC_JS/EM_JS expand to constructs cppcheck
// can't parse (internalAstError), and these sources are not part of any checked
// board build ([env:native-wasm] is board_level=extra, compiled by the build-wasm
// CI job, not pio check). Don't analyze them here.
*:*/platform/portduino/wasm/*
noExplicitConstructor:*/mqtt/*
postfixOperator:*/mqtt/*
// these two caused issues
missingOverride
virtualCallInConstructor
passedByValue:*/RedirectablePrint.h
internalAstError:*/CrossPlatformCryptoEngine.cpp
uninitMemberVar:*/AudioThread.h
// False positive
constVariableReference:*/Channels.cpp
constParameterPointer:*/unishox2.c
// False positive: make_zeroizing_array() returns unique_ptr<uint8_t[], ...>, so
// .get() is uint8_t*, not void*. cppcheck can't resolve the custom-deleter alias
// and reports arithmetic on these buffers as void* pointer math.
arithOperationsOnVoidPointer:*/EncryptedStorage.cpp
useStlAlgorithm
variableScope