Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocorrect only modified files? #5445

Open
NikKovIos opened this issue Jan 30, 2024 · 1 comment
Open

Autocorrect only modified files? #5445

NikKovIos opened this issue Jan 30, 2024 · 1 comment

Comments

@NikKovIos
Copy link

Hi. I'm using swiftlint for a long time and using autocorrect (--fix) every build. And every build it brings at least 15 seconds.

image

If swiflint could save state of already corrected files and then autocorrect only modified files it would be wonderfull!

(Yes, I saw #1343)

@SimplyDanny
Copy link
Collaborator

Cached files without violations that haven't changed since cached could be ignored by the correction. In other words, the --fix flag would only analyze changed files and eventually fix them together with the cached files with violations.

Sounds like that should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants