Skip to content

Having Fallback Dirs Checked for SwiftLint Binary #156

@Blackjacx

Description

@Blackjacx

I'm not a ruby expert but as it looks like the plugin searches in the plugin/gem directory for the swiftlint binary:

File.expand_path(File.join(File.dirname(__FILE__), 'bin', 'swiftlint'))

Usually people install the binary using Homebrew or Mint. In both cases the binary will be stored/linked in /usr/local/bin. What if we implement a list of paths that get checked for the binary. The one with a match is returned. We could prioritize the current default path if desired, so that all the current implementations don't have to change anything. As second option I would like to check /user/local/bin.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions