FoodcriticRubocop: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
(Created page with "Raw notes... needs formatting, context, examples <syntaxhighlight> ​gem install chefstyle - rubocop or rubocop -r chefstyle -D --format offenses foodcritic . foodcritic -t -...")
 
(fix syntax FoodcriticRubocop)
 
Line 1: Line 1:
Raw notes... needs formatting, context, examples
Raw notes... needs formatting, context, examples
<syntaxhighlight>
<syntaxhighlight lang=bash>
​gem install chefstyle
​gem install chefstyle
- rubocop or rubocop -r chefstyle -D --format offenses
- rubocop or rubocop -r chefstyle -D --format offenses

Latest revision as of 22:59, 24 January 2018

Raw notes... needs formatting, context, examples

​gem install chefstyle
- rubocop or rubocop -r chefstyle -D --format offenses
foodcritic .
foodcritic -t -FC002 -f all .
foodcritic -t correctness
chef exec rspec
script:
- chefstyle
- foodcritic .
- chef exec rspec
- kitchen test -d always
chefstyle -a