Merge branch 'main' into daverlo/categoryInput
This commit is contained in:
commit
ea18d47a2b
20 changed files with 169 additions and 74 deletions
|
|
@ -6,7 +6,7 @@ import * as toolrunner from "@actions/exec/lib/toolrunner";
|
|||
import * as analysisPaths from "./analysis-paths";
|
||||
import { getCodeQL } from "./codeql";
|
||||
import * as configUtils from "./config-utils";
|
||||
import { countLoc } from "./count-loc";
|
||||
import { IdPrefixes, countLoc } from "./count-loc";
|
||||
import { isScannedLanguage, Language } from "./languages";
|
||||
import { Logger } from "./logging";
|
||||
import * as sharedEnv from "./shared-environment";
|
||||
|
|
@ -292,7 +292,7 @@ export async function runAnalyze(
|
|||
async function injectLinesOfCode(
|
||||
sarifFile: string,
|
||||
language: string,
|
||||
locPromise: Promise<Record<string, number>>
|
||||
locPromise: Promise<Partial<Record<IdPrefixes, number>>>
|
||||
) {
|
||||
const lineCounts = await locPromise;
|
||||
if (language in lineCounts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue