Run lint-fix with newer version of prettier

This commit is contained in:
Michael B. Gale
2026-10-30 15:33:25 +00:00
parent 69543ab913
commit fab591c88b
9 changed files with 20 additions and 33 deletions

View File

@@ -59,13 +59,10 @@ import { postProcessAndUploadSarif } from "./upload-sarif";
import * as util from "./util";
interface AnalysisStatusReport
extends uploadLib.UploadStatusReport,
QueriesStatusReport {}
extends uploadLib.UploadStatusReport, QueriesStatusReport {}
interface FinishStatusReport
extends StatusReportBase,
DatabaseCreationTimings,
AnalysisStatusReport {
extends StatusReportBase, DatabaseCreationTimings, AnalysisStatusReport {
dependency_caching_upload_results?: DependencyCacheUploadStatusReport;
database_upload_results: DatabaseUploadResult[];
}
@@ -222,8 +219,8 @@ async function run(action: ActionState<["Base", "Logger", "Env", "Actions"]>) {
const logger = action.logger;
let uploadResults:
| Partial<Record<analyses.AnalysisKind, UploadResult>>
| undefined = undefined;
Partial<Record<analyses.AnalysisKind, UploadResult>> | undefined =
undefined;
let runStats: QueriesStatusReport | undefined = undefined;
let config: Config | undefined = undefined;
let trapCacheUploadTime: number | undefined = undefined;

View File

@@ -54,7 +54,9 @@ type RunQueriesDurationStatusReport = {
* The "builtin" designation is now outdated with the move to CLI config parsing: this is the time
* taken to run _all_ the queries.
*/
[L in BuiltInLanguageKey as `analyze_builtin_queries_${L}_duration_ms`]?: number;
[
L in BuiltInLanguageKey as `analyze_builtin_queries_${L}_duration_ms`
]?: number;
};
type InterpretResultsDurationStatusReport = {
@@ -63,8 +65,7 @@ type InterpretResultsDurationStatusReport = {
};
export interface QueriesStatusReport
extends RunQueriesDurationStatusReport,
InterpretResultsDurationStatusReport {
extends RunQueriesDurationStatusReport, InterpretResultsDurationStatusReport {
/**
* Whether the analysis is diff-informed (in the sense that the action generates a diff-range data
* extension for the analysis, regardless of whether the data extension is actually used by queries).

View File

@@ -276,9 +276,7 @@ export function getArtifactSuffix(matrix: string | undefined): string {
// Enumerates different, possible outcomes for artifact uploads.
export type UploadArtifactsResult =
| "no-artifacts-to-upload"
| "upload-successful"
| "upload-failed";
"no-artifacts-to-upload" | "upload-successful" | "upload-failed";
/**
* Uploads the specified files as a single workflow artifact.

View File

@@ -240,10 +240,7 @@ export enum SystemEnvVar {
/** A type representing all known environment variables. */
export type KnownEnvVar =
| EnvVar
| ActionsEnvVars
| RegistryProxyVars
| SystemEnvVar;
EnvVar | ActionsEnvVars | RegistryProxyVars | SystemEnvVar;
/**
* Gets an environment variable, but throws an error if it is not set.

View File

@@ -44,7 +44,8 @@ import {
import { checkDiskUsage, checkGitHubVersionInRange, wrapError } from "./util";
interface InitPostStatusReport
extends StatusReportBase,
extends
StatusReportBase,
initActionPostHelper.UploadFailedSarifResult,
initActionPostHelper.JobStatusReport,
initActionPostHelper.DependencyCachingUsageReport {}
@@ -56,8 +57,7 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
let config: Config | AbortedInitConfig | undefined;
let uploadFailedSarifResult:
| initActionPostHelper.UploadFailedSarifResult
| undefined;
initActionPostHelper.UploadFailedSarifResult | undefined;
let dependencyCachingUsage: DependencyCachingUsageReport | undefined;
try {

View File

@@ -1869,8 +1869,7 @@ async function runDownloadCodeQL(
return {
codeqlFolder,
cleanupDiagnostic: diagnostic?.attributes as
| toolsDownload.ToolcacheCleanupResult
| undefined,
toolsDownload.ToolcacheCleanupResult | undefined,
};
}

View File

@@ -175,11 +175,7 @@ export const oidcSchemas = [
/** Represents all supported OIDC configurations. */
export type OIDC =
| AzureConfig
| AWSConfig
| JFrogConfig
| CloudsmithConfig
| GCPConfig;
AzureConfig | AWSConfig | JFrogConfig | CloudsmithConfig | GCPConfig;
/** All authentication-related fields. */
export type AuthConfig = UsernamePassword | Token | OIDC;

View File

@@ -488,10 +488,10 @@ export interface AssertableTarget<R> {
}
class CallableEnvBuilder<
Args extends readonly any[],
R,
Fs extends ReadonlyArray<AllState[number]>,
>
Args extends readonly any[],
R,
Fs extends ReadonlyArray<AllState[number]>,
>
extends BaseEnvBuilder<Args, R, Fs>
implements AssertableTarget<R>
{

View File

@@ -30,8 +30,7 @@ import {
} from "./util";
interface UploadSarifStatusReport
extends StatusReportBase,
upload_lib.UploadStatusReport {}
extends StatusReportBase, upload_lib.UploadStatusReport {}
async function sendSuccessStatusReport(
startedAt: Date,