@@ -91,21 +91,22 @@ async Task<bool> run(string outputReportType, string inputReports)
9191 {
9292 reportTypeSettings . Add ( $@ """-reports:{ inputReports } """);
9393 reportTypeSettings.Add($@""" - reporttypes : Cobertura""");
94- var options = appOptionsProvider.Get();
95- var cyclomaticThreshold = options.ThresholdForCyclomaticComplexity;
96- var crapScoreThreshold = options.ThresholdForCrapScore;
97- var nPathThreshold = options.ThresholdForNPathComplexity;
9894
99- reportTypeSettings.Add($@""" - riskHotspotsAnalysisThresholds : metricThresholdForCyclomaticComplexity= { cyclomaticThreshold } """);
100- reportTypeSettings.Add($@""" - riskHotspotsAnalysisThresholds : metricThresholdForCrapScore= { crapScoreThreshold } """);
101- reportTypeSettings.Add($@""" - riskHotspotsAnalysisThresholds : metricThresholdForNPathComplexity= { nPathThreshold } """);
102-
10395 }
10496 else if (outputReportType.Equals("HtmlInline_AzurePipelines", StringComparison.OrdinalIgnoreCase))
10597 {
10698 reportTypeSettings.Add($@""" - reports : { inputReports } """);
10799 reportTypeSettings.Add($@""" - plugins : { typeof ( FccLightReportBuilder ) . Assembly . Location } """);
108100 reportTypeSettings.Add($@""" - reporttypes : { ( darkMode ? FccDarkReportBuilder . REPORT_TYPE : FccLightReportBuilder . REPORT_TYPE ) } """);
101+ var options = appOptionsProvider.Get();
102+ var cyclomaticThreshold = options.ThresholdForCyclomaticComplexity;
103+ var crapScoreThreshold = options.ThresholdForCrapScore;
104+ var nPathThreshold = options.ThresholdForNPathComplexity;
105+
106+ reportTypeSettings.Add($@""" riskHotspotsAnalysisThresholds: metricThresholdForCyclomaticComplexity = { cyclomaticThreshold } """);
107+ reportTypeSettings.Add($@""" riskHotspotsAnalysisThresholds: metricThresholdForCrapScore = { crapScoreThreshold } """);
108+ reportTypeSettings.Add($@""" riskHotspotsAnalysisThresholds: metricThresholdForNPathComplexity = { nPathThreshold } """);
109+
109110 }
110111 else
111112 {
0 commit comments