This is a cookstyle provider for linter. It will be used with files that have the Chef syntax.
Heavily inspired by linter-rubocop
The linter
package must be installed in order to use this plugin. If it
is not installed, please follow the instructions here.
The language-chef
package must also be installed in order to use this plugin. If it is not installed, please follow the instructions here
This package will attempt to install these dependent packages on your behalf, but if it is unable to do so, please install them yourself.
Before using this plugin, you must ensure that cookstyle
is installed on
your system. To install cookstyle
, do the following:
-
Install ruby.
-
Install
cookstyle
by typing the following in a terminal:gem install cookstyle
-
Alternatively install ChefDK which already includes
cookstyle
: https://downloads.chef.io/chef-dk/
Now you can proceed to install the linter-cookstyle
plugin.
$ apm install linter-cookstyle