You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Excluded syntax not working anymore in 0.58.0 #5953
We are using swiftlint in our project for years. In the .swiftlint.yml file we were excluding some folders.
In the latest release this doesn't work anymore and swiftlint tries to correct all files from the ThirdParty folders.
example file path MyProject/ThirdParty/Lottie/Private/Model/DotLottie/ZipFoundation/Archive+Writing.swift. Literally everything under ThirdParty, thousands of files.
What's funny is that I cannot reproduce locally, not sure why - on my machine, the files are properly excluded, but on CI they are not (both cases using 0.58.0 and using same command), so hundreds or warnings are reported there
My team has just observed that if we add the following syntax, everything works. So this means that most probably wildcards are not working anymore in the latest release.
Activity
bilalb commentedon Jan 13, 2025
Same here
timath98 commentedon Jan 13, 2025
Same here too :'(
SimplyDanny commentedon Jan 13, 2025
What is a typical file path that gets linted while it shouldn't?
Please also provide your include and exclude patterns together with the command you are executing (like @dtodereanfourthline did).
dtodereanfourthline commentedon Jan 14, 2025
example file path
MyProject/ThirdParty/Lottie/Private/Model/DotLottie/ZipFoundation/Archive+Writing.swift. Literally everything under ThirdParty, thousands of files.lucasecf commentedon Jan 14, 2025
I'm affected by this as well.
excluded files:
command:
swiftlint lint <workspace-path> --config <workspace-path>/.swiftlint.yml --quiet --reporter jsonWhat's funny is that I cannot reproduce locally, not sure why - on my machine, the files are properly excluded, but on CI they are not (both cases using 0.58.0 and using same command), so hundreds or warnings are reported there
dtodereanfourthline commentedon Jan 14, 2025
My team has just observed that if we add the following syntax, everything works. So this means that most probably wildcards are not working anymore in the latest release.
SimplyDanny commentedon Jan 15, 2025
For the time being, I've reverted the change that was causing the regression. File filtering will hopefully work as normal again in 0.58.1.
bilalb commentedon Jan 16, 2025
Thank you @SimplyDanny
When can we expect 0.58.1 to be available via Homebrew?
dtodereanfourthline commentedon Jan 16, 2025
Thank you! :)
SimplyDanny commentedon Jan 16, 2025
There you go.