Skip to content

Commit 6e58677

Browse files
committed
Update condition and comment for CQ-only config
1 parent a99145b commit 6e58677

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
@@ -1132,9 +1132,10 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11321132
config.augmentationProperties,
11331133
);
11341134

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

0 commit comments

Comments
 (0)