From c237da1a2f3a5a94d0a40b2d472039038d79d09c Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Fri, 12 May 2023 09:58:30 +0200 Subject: [PATCH] Fix linting errors --- src/analyze.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/analyze.ts b/src/analyze.ts index 6da8d6d3e..e39e2d680 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -80,20 +80,23 @@ export interface QueriesStatusReport { analyze_failure_language?: string; } -async function setupPythonExtractor(logger: Logger, features: FeatureEnablement, codeql: CodeQL) { +async function setupPythonExtractor( + logger: Logger, + features: FeatureEnablement, + codeql: CodeQL +) { const codeqlPython = process.env["CODEQL_PYTHON"]; if (codeqlPython === undefined || codeqlPython.length === 0) { // If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything return; } - if (await features.getValue( - Feature.DisablePythonDependencyInstallation, - codeql - )) { + if ( + await features.getValue(Feature.DisablePythonDependencyInstallation, codeql) + ) { logger.warning( "Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + - "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." ); return; }