Skip to content

Keep file content when the file is virtual - #6519

Merged
SimplyDanny merged 1 commit into
mainfrom
keep-content
Feb 28, 2026
Merged

SimplyDanny merged 1 commit into
mainfrom
keep-content

Conversation

@SimplyDanny

Copy link
Copy Markdown
Collaborator

Virtual files are not stored on disk and can thus also not be read from there again. Their content needs to stay in memory and be modified right there.

Fixes #6501.

Virtual files are not stored on disk and can thus also not be read
from there again. Their content needs to stay in memory and be modified
right there.
@SwiftLintBot

Copy link
Copy Markdown
19 Messages
📖 Building this branch resulted in the same binary size as when built on main.
📖 Linting Aerial with this PR took 0.82 s vs 0.8 s on main (2% slower).
📖 Linting Alamofire with this PR took 1.08 s vs 1.08 s on main (0% slower).
📖 Linting Brave with this PR took 7.17 s vs 7.21 s on main (0% faster).
📖 Linting DuckDuckGo with this PR took 25.87 s vs 25.89 s on main (0% faster).
📖 Linting Firefox with this PR took 11.84 s vs 11.86 s on main (0% faster).
📖 Linting Kickstarter with this PR took 8.09 s vs 8.1 s on main (0% faster).
📖 Linting Moya with this PR took 0.45 s vs 0.45 s on main (0% slower).
📖 Linting NetNewsWire with this PR took 2.46 s vs 2.49 s on main (1% faster).
📖 Linting Nimble with this PR took 0.69 s vs 0.7 s on main (1% faster).
📖 Linting PocketCasts with this PR took 7.65 s vs 7.71 s on main (0% faster).
📖 Linting Quick with this PR took 0.46 s vs 0.48 s on main (4% faster).
📖 Linting Realm with this PR took 3.02 s vs 2.96 s on main (2% slower).
📖 Linting Sourcery with this PR took 1.85 s vs 1.86 s on main (0% faster).
📖 Linting Swift with this PR took 4.66 s vs 4.64 s on main (0% slower).
📖 Linting SwiftLintPerformanceTests with this PR took 0.33 s vs 0.36 s on main (8% faster).
📖 Linting VLC with this PR took 1.19 s vs 1.18 s on main (0% slower).
📖 Linting Wire with this PR took 18.58 s vs 18.58 s on main (0% slower).
📖 Linting WordPress with this PR took 12.58 s vs 12.61 s on main (0% faster).

Generated by 🚫 Danger

@SimplyDanny
SimplyDanny merged commit b0cd950 into main Feb 28, 2026
20 checks passed
@SimplyDanny
SimplyDanny deleted the keep-content branch February 28, 2026 08:39
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.

swiftlint lint --fix --use-stdin does not print fixed source

2 participants