Use cookstyle instead of rubocop if available
smith opened this issue · 2 comments
smith commented
Newer versions of Chef DK include Cookstyle, which is a specific version of Rubocop with specific rules for Chef cookbooks.
By default, instead of using rubocop, this extension should look for cookstyle and use that if possible.
stuartpreston commented
Yes, I think it's time. Do we still agree with the default of leaving it disabled but enabled via workspace or user setting?
smith commented
I think rubocop is enabled by default (from my tests and from https://github.com/pendrica/vscode-chef#rubocop-linting), but foodcritic is disabled by default. I'd prefer leaving it enabled by default with cookstyle as well, but don't feel strongly about it since I could just turn it on if needed.