We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e09077c commit e802c36Copy full SHA for e802c36
Plugins/SwiftComplexityPlugin/Plugin.swift
@@ -73,8 +73,8 @@ struct SwiftComplexityPlugin: BuildToolPlugin {
73
"--format", "xcode", // Use Xcode diagnostics format
74
]
75
76
- // Add threshold from build settings or default
77
- let threshold = "10" // Could be extracted from Xcode build settings if needed
+ // Add threshold from Xcode build settings or default
+ let threshold = context.buildEnvironment["SWIFT_COMPLEXITY_THRESHOLD"] ?? "10"
78
arguments.append(contentsOf: ["--threshold", threshold])
79
80
// Add input file paths
0 commit comments