mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Merge pull request #62 from ian-semmle/302_1_test
C++: Improve the JSF 3.02 rule 1 message, and add a test
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
import cpp
|
||||
|
||||
from Function f
|
||||
where f.getMetrics().getNumberOfLinesOfCode() > 200
|
||||
select f, "AV Rule 1: any one function (or method) will contain no more than 200 logical source lines of code."
|
||||
from Function f, int n
|
||||
where n = f.getMetrics().getNumberOfLinesOfCode()
|
||||
and n > 200
|
||||
select f, "AV Rule 1: any one function (or method) will contain no more than 200 logical source lines of code. Function '" + f.toString() + "' contains " + n.toString() + " lines of code."
|
||||
|
||||
Reference in New Issue
Block a user