SublimeLinter / SublimeLinter-haml-lint

SublimeLinter 3 plugin for Haml, using haml-lint.
MIT License
4 stars 8 forks source link

Use the haml-lint bin instead of calling through ruby #13

Closed frothedoatmilk closed 8 months ago

frothedoatmilk commented 8 months ago

Calling haml-lint through ruby -S haml-lint... is not consistent with the behavior in other linter packages, and thus makes configuration more confusing.

ex: "executable": ["<ruby version manager>", "exec", "--", "haml-lint"] in the configuration file results in /path/to/rbenv exec -- haml-lint -S haml-lint ...

See https://github.com/SublimeLinter/SublimeLinter-eslint/blob/master/linter.py#L77 and https://github.com/SublimeLinter/SublimeLinter-rubocop/blob/master/linter.py#L40.

kaste commented 8 months ago

That totally makes sense. Thanks for looking into it.