Merge branch 'main' into fix/205
This commit is contained in:
commit
a2931d32c7
4 changed files with 5 additions and 4 deletions
|
|
@ -48,7 +48,6 @@
|
||||||
"github/no-then": "off",
|
"github/no-then": "off",
|
||||||
"import/no-extraneous-dependencies": "off",
|
"import/no-extraneous-dependencies": "off",
|
||||||
"no-shadow": "off",
|
"no-shadow": "off",
|
||||||
"no-throw-literal": "off",
|
|
||||||
"sort-imports": "off"
|
"sort-imports": "off"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
|
||||||
2
lib/upload-lib.js
generated
2
lib/upload-lib.js
generated
|
|
@ -34,7 +34,7 @@ function combineSarifFiles(sarifFiles) {
|
||||||
combinedSarif.version = sarifObject.version;
|
combinedSarif.version = sarifObject.version;
|
||||||
}
|
}
|
||||||
else if (combinedSarif.version !== sarifObject.version) {
|
else if (combinedSarif.version !== sarifObject.version) {
|
||||||
throw `Different SARIF versions encountered: ${combinedSarif.version} and ${sarifObject.version}`;
|
throw new Error(`Different SARIF versions encountered: ${combinedSarif.version} and ${sarifObject.version}`);
|
||||||
}
|
}
|
||||||
combinedSarif.runs.push(...sarifObject.runs);
|
combinedSarif.runs.push(...sarifObject.runs);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,9 @@ export function combineSarifFiles(sarifFiles: string[]): string {
|
||||||
if (combinedSarif.version === null) {
|
if (combinedSarif.version === null) {
|
||||||
combinedSarif.version = sarifObject.version;
|
combinedSarif.version = sarifObject.version;
|
||||||
} else if (combinedSarif.version !== sarifObject.version) {
|
} else if (combinedSarif.version !== sarifObject.version) {
|
||||||
throw `Different SARIF versions encountered: ${combinedSarif.version} and ${sarifObject.version}`;
|
throw new Error(
|
||||||
|
`Different SARIF versions encountered: ${combinedSarif.version} and ${sarifObject.version}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
combinedSarif.runs.push(...sarifObject.runs);
|
combinedSarif.runs.push(...sarifObject.runs);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue