Skip to content

Commit 3ee9287

Browse files
committed
Update condition and comment for CQ-only config
1 parent 7baedbc commit 3ee9287

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/init-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config-utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,9 +1131,10 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11311131

11321132
const config = await initActionState(inputs, userConfig);
11331133

1134-
// If Code Scanning analysis is disabled, then we initialise the database for Code Quality.
1135-
// That entails disabling the default queries and only running quality queries.
1136-
if (!isCodeScanningEnabled(config)) {
1134+
// If Code Quality analysis is the only enabled analysis kind, then we will initialise
1135+
// the database for Code Quality. That entails disabling the default queries and only
1136+
// running quality queries. We do not currently support query customisations in that case.
1137+
if (config.analysisKinds.length === 1 && isCodeQualityEnabled(config)) {
11371138
// Warn if any query customisations are present in the computed configuration.
11381139
if (hasQueryCustomisation(config.computedConfig)) {
11391140
logger.warning(

0 commit comments

Comments
 (0)