From a3a98b9819d399802aa52a3823ccbb8a5f51fe01 Mon Sep 17 00:00:00 2001 From: "alexey.afanasiev" Date: Tue, 3 Sep 2024 23:31:33 +0200 Subject: [PATCH] :zap: QD-9824 Pass baseline through system property qodana.scoped.baseline.path (cherry picked from commit dbfdda6eb675ac711350ef4bca8aedc512935733) --- core/system.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/system.go b/core/system.go index d4f607e4..a05ceb93 100644 --- a/core/system.go +++ b/core/system.go @@ -377,10 +377,10 @@ func runScopeScript(ctx context.Context, options *QodanaOptions, startHash strin options.Property = append( props, "-Dqodana.skip.preamble=true", // don't print the QD logo again - "-Didea.headless.enable.statistics=false", // disable statistics for second run + "-Didea.headless.enable.statistics=false", // disable statistics for second run + fmt.Sprintf("-Dqodana.scoped.baseline.path=%s", startSarif), // disable statistics for second run ) options.ResultsDir = endDir - options.Baseline = startSarif options.ApplyFixes = applyFixes options.Cleanup = cleanup options.FixesStrategy = fixesStrategy