Visitar URL original
Run `lint-fix` with newer version of `prettier` · github/codeql-action@fab591c · GitHub
Skip to content

Commit fab591c

Browse files
committed
Run lint-fix with newer version of prettier
1 parent 69543ab commit fab591c

9 files changed

Lines changed: 20 additions & 33 deletions

‎src/analyze-action.ts‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,10 @@ import { postProcessAndUploadSarif } from "./upload-sarif";
5959
import * as util from "./util";
6060

6161
interface AnalysisStatusReport
62-
extends uploadLib.UploadStatusReport,
63-
QueriesStatusReport {}
62+
extends uploadLib.UploadStatusReport, QueriesStatusReport {}
6463

6564
interface FinishStatusReport
66-
extends StatusReportBase,
67-
DatabaseCreationTimings,
68-
AnalysisStatusReport {
65+
extends StatusReportBase, DatabaseCreationTimings, AnalysisStatusReport {
6966
dependency_caching_upload_results?: DependencyCacheUploadStatusReport;
7067
database_upload_results: DatabaseUploadResult[];
7168
}
@@ -222,8 +219,8 @@ async function run(action: ActionState<["Base", "Logger", "Env", "Actions"]>) {
222219
const logger = action.logger;
223220

224221
let uploadResults:
225-
| Partial<Record<analyses.AnalysisKind, UploadResult>>
226-
| undefined = undefined;
222+
Partial<Record<analyses.AnalysisKind, UploadResult>> | undefined =
223+
undefined;
227224
let runStats: QueriesStatusReport | undefined = undefined;
228225
let config: Config | undefined = undefined;
229226
let trapCacheUploadTime: number | undefined = undefined;

‎src/analyze.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ type RunQueriesDurationStatusReport = {
5454
* The "builtin" designation is now outdated with the move to CLI config parsing: this is the time
5555
* taken to run _all_ the queries.
5656
*/
57-
[L in BuiltInLanguageKey as `analyze_builtin_queries_${L}_duration_ms`]?: number;
57+
[
58+
L in BuiltInLanguageKey as `analyze_builtin_queries_${L}_duration_ms`
59+
]?: number;
5860
};
5961

6062
type InterpretResultsDurationStatusReport = {
@@ -63,8 +65,7 @@ type InterpretResultsDurationStatusReport = {
6365
};
6466

6567
export interface QueriesStatusReport
66-
extends RunQueriesDurationStatusReport,
67-
InterpretResultsDurationStatusReport {
68+
extends RunQueriesDurationStatusReport, InterpretResultsDurationStatusReport {
6869
/**
6970
* Whether the analysis is diff-informed (in the sense that the action generates a diff-range data
7071
* extension for the analysis, regardless of whether the data extension is actually used by queries).

‎src/debug-artifacts.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ export function getArtifactSuffix(matrix: string | undefined): string {
276276

277277
// Enumerates different, possible outcomes for artifact uploads.
278278
export type UploadArtifactsResult =
279-
| "no-artifacts-to-upload"
280-
| "upload-successful"
281-
| "upload-failed";
279+
"no-artifacts-to-upload" | "upload-successful" | "upload-failed";
282280

283281
/**
284282
* Uploads the specified files as a single workflow artifact.

‎src/environment.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,7 @@ export enum SystemEnvVar {
240240

241241
/** A type representing all known environment variables. */
242242
export type KnownEnvVar =
243-
| EnvVar
244-
| ActionsEnvVars
245-
| RegistryProxyVars
246-
| SystemEnvVar;
243+
EnvVar | ActionsEnvVars | RegistryProxyVars | SystemEnvVar;
247244

248245
/**
249246
* Gets an environment variable, but throws an error if it is not set.

‎src/init-action-post.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ import {
4444
import { checkDiskUsage, checkGitHubVersionInRange, wrapError } from "./util";
4545

4646
interface InitPostStatusReport
47-
extends StatusReportBase,
47+
extends
48+
StatusReportBase,
4849
initActionPostHelper.UploadFailedSarifResult,
4950
initActionPostHelper.JobStatusReport,
5051
initActionPostHelper.DependencyCachingUsageReport {}
@@ -56,8 +57,7 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
5657

5758
let config: Config | AbortedInitConfig | undefined;
5859
let uploadFailedSarifResult:
59-
| initActionPostHelper.UploadFailedSarifResult
60-
| undefined;
60+
initActionPostHelper.UploadFailedSarifResult | undefined;
6161
let dependencyCachingUsage: DependencyCachingUsageReport | undefined;
6262

6363
try {

‎src/setup-codeql.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,8 +1869,7 @@ async function runDownloadCodeQL(
18691869
return {
18701870
codeqlFolder,
18711871
cleanupDiagnostic: diagnostic?.attributes as
1872-
| toolsDownload.ToolcacheCleanupResult
1873-
| undefined,
1872+
toolsDownload.ToolcacheCleanupResult | undefined,
18741873
};
18751874
}
18761875

‎src/start-proxy/types.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ export const oidcSchemas = [
175175

176176
/** Represents all supported OIDC configurations. */
177177
export type OIDC =
178-
| AzureConfig
179-
| AWSConfig
180-
| JFrogConfig
181-
| CloudsmithConfig
182-
| GCPConfig;
178+
AzureConfig | AWSConfig | JFrogConfig | CloudsmithConfig | GCPConfig;
183179

184180
/** All authentication-related fields. */
185181
export type AuthConfig = UsernamePassword | Token | OIDC;

‎src/testing-utils.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,10 @@ export interface AssertableTarget<R> {
488488
}
489489

490490
class CallableEnvBuilder<
491-
Args extends readonly any[],
492-
R,
493-
Fs extends ReadonlyArray<AllState[number]>,
494-
>
491+
Args extends readonly any[],
492+
R,
493+
Fs extends ReadonlyArray<AllState[number]>,
494+
>
495495
extends BaseEnvBuilder<Args, R, Fs>
496496
implements AssertableTarget<R>
497497
{

‎src/upload-sarif-action.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ import {
3030
} from "./util";
3131

3232
interface UploadSarifStatusReport
33-
extends StatusReportBase,
34-
upload_lib.UploadStatusReport {}
33+
extends StatusReportBase, upload_lib.UploadStatusReport {}
3534

3635
async function sendSuccessStatusReport(
3736
startedAt: Date,

0 commit comments

Comments
 (0)