Skip to content

Commit

Permalink
Add baseline metrics for lines of code
Browse files Browse the repository at this point in the history
This commit uses a third party library to estimate the lines of code in
a database that is to be analyzed by codeql.

The estimate uses the same includes and excludes globs for determining
which files should be counted.

The lines of code count is returned by language and injected into the
SARIF as `baseline` property in the `${language}/summary/lines-of-code`
metric.
  • Loading branch information
aeisenberg committed Apr 26, 2021
1 parent 7c5b128 commit 998f472
Show file tree
Hide file tree
Showing 11 changed files with 379 additions and 41 deletions.
2 changes: 1 addition & 1 deletion lib/analyze-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 36 additions & 4 deletions lib/analyze.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 998f472

Please sign in to comment.