You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,15 @@ firefox localhost:8001
60
60
## Summary
61
61
62
62
I would call this somewhat simple or straightforward code, so we cannot accept many false positives.
63
-
Luckily with running clang-tidy + Semgrep + CodeQL none / very few false positives were found.
63
+
Still a few FPs were reported from running clang-tidy + Semgrep + CodeQL.
64
+
65
+
19 (11+8) FPs, 16 (12+2+2) TPs, in addition to 6 duplicate TPs.
66
+
67
+
Note that many of the FPs were of the same type and easily ignored (Semgrep) or (mainly for for clang-tidy)
68
+
some were reasonable complaints that is not a problem in the specific context / already checked indirectly later ...
69
+
and thus the critique to check them directly or more clearly could very well be valid.
70
+
71
+
This also highlights that these static code analysis tools should be present from the start of development, to force a better code pattern (or a pattern more in line with the tool..?) thoughout.
64
72
65
73
### GCC
66
74
No warnings from GCC
@@ -80,8 +88,8 @@ It is a bit scary that each of the three tools gave different warnings, with ver
80
88
So running fewer tools we would not have found all these faults, what are we missing that we could find with other tools?
81
89
82
90
#### clang-tidy/clang-sa (CodeChecker)
83
-
CodeChecker reports a few useful errors, no real false positives.
84
-
Although we get some less important warnings as we use --enable sensitive.
91
+
CodeChecker reports many useful errors (memory errors and other important problems), but some false positives.
92
+
As we use its sensitive setting, we get a few extra LOW and MEDIUM warnings (can be tweaked a lot).
0 commit comments