Hive
fix(cli): skip static products linting when warning targets is .none
GitHub issue · Closed
Source
tuist/tuist #10074
Updated
Jun 24, 2026
Domains
Generated projects
When staticSideEffectsWarningTargets is set to .none, the StaticProductsGraphLinter still performs the full DFS traversal of the dependency graph before discarding all results. This adds an early return to skip the traversal entirely, matching the user’s intent of “no warnings.”
On a large project (~6,700 targets), this reduces lint time from ~36s to ~10s.
How to test locally
- Set
staticSideEffectsWarningTargets: .noneinTuist.swift - Run
tuist generateand observe that no static side-effect warnings are emitted - Run the test:
xcodebuild test -workspace Tuist.xcworkspace -scheme Tuist-Workspace \
-only-testing TuistGeneratorTests/StaticProductsGraphLinterTests \
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
No GitHub comments yet.