Skip to content

Commit b41a06a

Browse files
committed
Python: Treat py/summary/lines-of-user-code as the primary summary metric
Move the `lines-of-code` tag from `py/summary/lines-of-code`. Code Scanning will eventually look for this tag. The intent is to treat the number of lines of user code for Python as the summary of how much code was analysed, ignoring both external libraries and generated code. This matches the current baseline metric the CodeQL Action computes for Python. We'll revisit this decision, and the baseline, if necessary.
1 parent ab73b10 commit b41a06a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

python/ql/src/Summary/LinesOfCode.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* database. This query counts the lines of code, excluding whitespace or comments.
66
* @kind metric
77
* @tags summary
8-
* lines-of-code
98
* @id py/summary/lines-of-code
109
*/
1110

python/ql/src/Summary/LinesOfUserCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* be counted as user written code.
88
* @kind metric
99
* @tags summary
10+
* lines-of-code
1011
* @id py/summary/lines-of-user-code
1112
*/
1213

0 commit comments

Comments
 (0)