SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

How to support cookstyle #36

Closed jvogt closed 7 years ago

jvogt commented 7 years ago

Cookstyle is a wrapper for rubocop, with its own cli. It's developed by Chef, and uses a specific rubocop ruleset that chef has agreed on.

As an experiment I cloned this repo, performed a little s/rubocop/cookstyle/g magic, and added it to sublime with successful results.

In the interest of DRY, while also respecting that cookstyle has a dedicated gem and cli executable, how would it be best to add support for cookstyle to SublimeLinter?

Do what I did above as a new repo? Add support to this repo?

Just wanted to open the dialog.

reconbot commented 7 years ago

I'd probably extend the cookstyle rules file. In my own rubocop.yml though I'm not sure how to read it out of the gem. Another linter might also be in order if the gem drifts.

kmf commented 7 years ago

I would love this.

ljkbennett commented 7 years ago

I think we can do this now using the bundle_exec option. I don't use cookstyle, so can someone confirm this works please?

"rubocop": {
    "use_bundle_exec": true,
    "args": ["-r", "cookstyle"]
}