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
Swiftlint with Exclusions takes up to 10 minutes, --use-alternative-excluding can't be used as PluginBuildTool #6084
There are many (not only open) issues (#5018, #6028, ...) about Swiftlint being extremely slow when exclude contains bigger folders or ** pattern.
We were until now using post build script step with --use-alternative-excluding that worked fast, but had some other issues. We switched to Plugin build tool and are now correctly seeing Swiftlint run on each build, but for some folks on our team this procedure takes even 10 minutes on compile.
One comment (#5018 (comment)) already mentioned this, but no official issue / feature request was created, so here we are.
Is there a way to enable--use-alternative-excluding for Build Plugin Tools (aka param inside .swiftlint.yml or is this the right time to make alternative excluding default? Or will this forever be only command line param without option to use it via config file?
Environment
SwiftLint version latest
Xcode version latest
Installation method used - SPM
Configuration file: Doesn't matter as long as exclude contains bigger folders / more files
changed the title [-]Exclusions takes 10 minutes instead of 5s, --use-alternative-excluding can't be used as PluginBuildTool[/-][+]Swiftlint with Exclusions takes up to 10 minutes, --use-alternative-excluding can't be used as PluginBuildTool[/+]on May 20, 2025
Activity
[-]Exclusions takes 10 minutes instead of 5s, --use-alternative-excluding can't be used as PluginBuildTool[/-][+]Swiftlint with Exclusions takes up to 10 minutes, --use-alternative-excluding can't be used as PluginBuildTool[/+]