in src/dotnet/PowerToys.CyclomaticComplexity/ComplexityAnalysisElementProblemAnalyzer.cs [102:106]
private static int GetThreshold(ElementProblemAnalyzerData data, PsiLanguageType language)
{
var threshold = data.SettingsStore.GetIndexedValue((CyclomaticComplexityAnalysisSettings s) => s.Thresholds, language.Name);
return threshold < 1 ? CyclomaticComplexityAnalysisSettings.DefaultThreshold : threshold;
}