mirror of
https://github.com/github/codeql.git
synced 2026-07-27 05:51:56 +02:00
I looked through a few hundred results from this query on lgtm.com and found that most of the FPs had to do with comment lines ending in `}`. This change should fix most of them, at the cost of very few false negatives. On Wireshark, this query goes from 7,425 results to 6,686 results before filtering for generated code. Almost all the lost results were FP, except a handful of results involving initializer lists.
7 lines
659 B
Plaintext
7 lines
659 B
Plaintext
| test2.cpp:37:1:37:39 | // int myFunction() { return myValue; } | This comment appears to contain commented-out code |
|
|
| test.c:2:1:2:22 | // commented out code; | This comment appears to contain commented-out code |
|
|
| test.c:4:1:7:8 | // some; | This comment appears to contain commented-out code |
|
|
| test.c:9:1:13:8 | // also; | This comment appears to contain commented-out code |
|
|
| test.c:21:1:26:2 | /*\n some;\n commented;\n out;\n code;\n*/ | This comment appears to contain commented-out code |
|
|
| test.c:28:1:34:2 | /*\n also;\n this\n is;\n commented-out\n code;\n*/ | This comment appears to contain commented-out code |
|