Compare commits

...

2 Commits

Author SHA1 Message Date
Andrew Eisenberg
333720190f Apply code scanning fix for disallow unused variables
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-09-11 19:34:50 -07:00
Andrew Eisenberg
b3a197b2b9 TEST: eslint errors 2024-09-11 09:32:25 -07:00
4 changed files with 13 additions and 5 deletions

3
lib/status-report.js generated
View File

@@ -67,6 +67,9 @@ var JobStatus;
JobStatus["FailureStatus"] = "JOB_STATUS_FAILURE";
JobStatus["ConfigErrorStatus"] = "JOB_STATUS_CONFIGURATION_ERROR";
})(JobStatus || (exports.JobStatus = JobStatus = {}));
const unused = 0;
const unused2 = 0;
const unused3 = 0;
function getActionsStatus(error, otherFailureCause) {
if (error || otherFailureCause) {
return error instanceof util_1.ConfigurationError ? "user-error" : "failure";

File diff suppressed because one or more lines are too long

View File

@@ -68,9 +68,14 @@ export enum JobStatus {
ConfigErrorStatus = "JOB_STATUS_CONFIGURATION_ERROR",
}
export interface StatusReportBase {
/** Name of the action being executed. */
action_name: ActionName;
export interface StatusReportBase {
/** Name of the action being executed.
*
*
*/
action_name: ActionName
/** Version of the action being executed, as a commit oid. */
action_oid: string;
/** Version of the action being executed, as a ref. */

View File

@@ -33,7 +33,7 @@
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
"noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */