If your linter plugin interfaces with a linter that is written in ruby, you should subclass from
This is done for you if you use the Create Linter Plugin command and select
Ruby as the linter language.
By doing so, you get the following features:
rbenv and rvm support¶
During class construction, SublimeLinter attempts to locate the gem and ruby specified in cmd.
The following forms are valid for the first argument of
gem@ruby gem ruby
rbenv is installed and the gem is also under
the gem will be executed directly. Otherwise
(ruby [, gem]) will be executed.
rvm-auto-ruby is installed,
(rvm-auto-ruby [, gem]) will be executed.
gem will be executed.