mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Avoid analyzing excluded language files for line counting
This change passes in a list of file types to the line counting analysis. These are the languages for the databases being analyzed. Line count analysis is restricted to these files.
This commit is contained in:
2
lib/analyze.test.js
generated
2
lib/analyze.test.js
generated
@@ -27,7 +27,7 @@ testing_utils_1.setupTests(ava_1.default);
|
||||
// paths are set in the database analyze invocation.
|
||||
ava_1.default("status report fields and search path setting", async (t) => {
|
||||
const mockLinesOfCode = Object.entries(languages_1.Language).reduce((obj, [lang], i) => {
|
||||
// use a different line count for each languaged
|
||||
// use a different line count for each language
|
||||
obj[lang] = i + 1;
|
||||
return obj;
|
||||
}, {});
|
||||
|
||||
Reference in New Issue
Block a user