Skip to content

Disable SourceKit via command line argument #6282

Closed

Description

@enekox

New Issue Checklist

Feature or Enhancement Proposal

0.61.0 released added the option to disable SourceKit when the environment variable SWIFTLINT_DISABLE_SOURCEKIT is defined.

However, in some cases, it might not be trivial to configure this environment variable.

While SourceKit is being completely removed, it would be great if meanwhile we had the option to pass a regular flag (eg --disable-sourcekit or --no-sourcekit) to disable SourceKit.

Thank you!

Activity

  1. SimplyDanny commented on Oct 7, 2025

    @SimplyDanny
    Collaborator

    What would be the situations where it isn't possible to configure it? I'm especially thinking about making the call just SWIFTLINT_DISABLE_SOURCEKIT=1 swiftlint ....

    If we're talking about Linux, you know that there are also special builds that don't require SourceKit and therefore work without any Swift toolchain preinstalled?

  2. added
    help
    on Oct 7, 2025
  3. enekox commented on Oct 7, 2025

    @enekox
    Author

    For example, if SwiftLint is run as a subprocess by some tooling that overrides the environment, and devs have no access to change that environment.

    Specific details don't matter, it's a matter of making it more flexible. Thanks!

  4. added
    enhancement
    and removed
    help
    on Oct 7, 2025
  5. enekox commented on Oct 21, 2025

    @enekox
    Author

    Would be really helpful if this was implemented, currently stuck not being able to disable SourceKit on Xcode 26 🙏

  6. enekox commented on Jan 12, 2026

    @enekox
    Author

    Bumping this one, would be great to have this implemented 🙏🙏🙏

  7. SimplyDanny commented on Jan 15, 2026

    @SimplyDanny
    Collaborator

    @enekox: Flag got implemented. I'll cut 0.63.1 shortly.

  8. enekox commented on Jan 16, 2026

    @enekox
    Author

    Awesome, working great! Thank you so much.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions