Hive Hive
Sign in

fix(cli): skip static products linting when warning targets is .none

GitHub issue · Closed

Metadata
Source
tuist/tuist #10074
Updated
Jun 24, 2026
Domains
Generated projects
Details

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

  1. Set staticSideEffectsWarningTargets: .none in Tuist.swift
  2. Run tuist generate and observe that no static side-effect warnings are emitted
  3. 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=""
Comments

No GitHub comments yet.