mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
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