Skip to content

Fix SwiftSyntax parsing of target dependencies in dependency arrays#28

Merged
tonyarnold merged 4 commits intomainfrom
fix/dependency-parsing-regression
Dec 30, 2025
Merged

Fix SwiftSyntax parsing of target dependencies in dependency arrays#28
tonyarnold merged 4 commits intomainfrom
fix/dependency-parsing-regression

Conversation

@tonyarnold
Copy link
Copy Markdown
Owner

The SwiftSyntax parser interpreted Target.Dependency.target(...) entries inside dependencies as target declarations, creating duplicate targets and cascading false missing-dependency reports.

This PR makes changes to:

  • Parse .target(name:)/.byName(name:) as dependency entries and only treat .target(...) calls as target declarations when they are direct elements of the targets
    array.
  • Add a regression fixture/test to prevent reintroducing the bug.

Closes #27

This comment was marked as resolved.

@tonyarnold tonyarnold merged commit 14511dd into main Dec 30, 2025
3 checks passed
@tonyarnold tonyarnold deleted the fix/dependency-parsing-regression branch December 30, 2025 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression v2.0.7: False positive "Missing dependencies" reported (works in v1.4.8)

2 participants