Skip to content

Swiftlint with Exclusions takes up to 10 minutes, --use-alternative-excluding can't be used as PluginBuildTool #6084

@Kaspik

Description

@Kaspik

New Issue Checklist

Bug Description

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.

Image
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions