Skip to content

Commit 918e792

Browse files
committed
Throw an error if query customisations are enabled for a code-quality-only analysis
1 parent 5d822f1 commit 918e792

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/init-action.js

Lines changed: 2 additions & 2 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,8 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11371137
if (config.analysisKinds.length === 1 && isCodeQualityEnabled(config)) {
11381138
// Warn if any query customisations are present in the computed configuration.
11391139
if (hasQueryCustomisation(config.computedConfig)) {
1140-
logger.warning(
1141-
"Query customizations will be ignored, because only `code-quality` analysis is enabled.",
1140+
throw new ConfigurationError(
1141+
"Query customizations are unsupported, because only `code-quality` analysis is enabled.",
11421142
);
11431143
}
11441144

0 commit comments

Comments
 (0)