linter-rubocop icon indicating copy to clipboard operation
linter-rubocop copied to clipboard

Rubocop not working for Chef Recipes

Open jschilperoord opened this issue 7 years ago • 1 comments

Hi,

Not sure if I should report this here but. When I install language-chef linter-rubocop doesn't seem to be doing anything. The green circle in the Atom status bar doesn't indicate it's linting.

When I remove language-chef(Atom detects Ruby as file type). Everything works fine.

Using linter-rubocop 2.2.3.

Thanks, Jeffrey

jschilperoord avatar May 15 '18 05:05 jschilperoord

I'm not an expert here, but it appears that language-chef coerces Chef files to source.chef.(recipes|metadata) now (https://github.com/sous-chefs/language-chef/commit/5d5baaf8c2302f86488a869e5ae212f366ded79a#diff-5a6fbddba660ab603e2f329c65affa45) instead of source.ruby.chef that linter-rubocop binds to. (https://github.com/AtomLinter/linter-rubocop/blob/master/src/index.js#L210)

mattlqx avatar May 17 '18 15:05 mattlqx