Skip to content

Skip directories while scanning Swift sources - #357

Draft
Pybsama wants to merge 1 commit into
uber:masterfrom
Pybsama:codex/skip-swift-suffixed-directories
Draft

Skip directories while scanning Swift sources#357
Pybsama wants to merge 1 commit into
uber:masterfrom
Pybsama:codex/skip-swift-suffixed-directories

Conversation

@Pybsama

@Pybsama Pybsama commented Aug 3, 2026

Copy link
Copy Markdown

Summary

  • inspect enumerated resource types before passing paths to the source parser
  • skip real directories and symlinks to directories while preserving symlinks to files
  • add regressions for .swift-suffixed directories and directory/file symlink boundaries

Fixes #356

Testing

  • swift test --filter FileScannerTests (2 tests)
  • swift test (158 XCTest tests and 3 Swift Testing tests)
  • swift build
  • swift run mockolo -j 4 -s .build/issue-356-reproduction/Sources -d .build/issue-356-reproduction/Generated-swift-run.swift

Inspect enumerated resource types so .swift-suffixed directories and directory symlinks are not parsed as source files, while preserving symlinks to files. Add regression coverage for both filesystem boundaries.
@CLAassistant

CLAassistant commented Aug 3, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Mockolo fails when source directory contains ".swift" suffix

2 participants