Skip to content

Commit

Permalink
Move type definition to where it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Partington committed Jan 6, 2021
1 parent 1da4ce5 commit 4bc186c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/analyze-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/analyze-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ import * as core from "@actions/core";

import * as actionsUtil from "./actions-util";
import {
AnalysisStatusReport,
runAnalyze,
CodeQLAnalysisError,
QueriesStatusReport,
} from "./analyze";
import { getConfig } from "./config-utils";
import { getActionsLogger } from "./logging";
import { parseRepositoryNwo } from "./repository";
import * as upload_lib from "./upload-lib";
import * as util from "./util";

interface AnalysisStatusReport
extends upload_lib.UploadStatusReport,
QueriesStatusReport {}

interface FinishStatusReport
extends actionsUtil.StatusReportBase,
AnalysisStatusReport {}
Expand Down
5 changes: 0 additions & 5 deletions src/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import * as configUtils from "./config-utils";
import { isScannedLanguage, Language } from "./languages";
import { Logger } from "./logging";
import * as sharedEnv from "./shared-environment";
import * as upload_lib from "./upload-lib";
import * as util from "./util";

export class CodeQLAnalysisError extends Error {
Expand Down Expand Up @@ -52,10 +51,6 @@ export interface QueriesStatusReport {
analyze_failure_language?: string;
}

export interface AnalysisStatusReport
extends upload_lib.UploadStatusReport,
QueriesStatusReport {}

async function setupPythonExtractor(logger: Logger) {
const codeqlPython = process.env["CODEQL_PYTHON"];
if (codeqlPython === undefined || codeqlPython.length === 0) {
Expand Down

0 comments on commit 4bc186c

Please sign in to comment.