chef-os-hardening icon indicating copy to clipboard operation
chef-os-hardening copied to clipboard

chef exec rake lint fails, foodcritic deprecated

Open flybd5 opened this issue 4 years ago • 0 comments

Command chef exec rake lint fails, foodcritic has apparently been deprecated, recommends using cookstyle

$ chef exec rake lint 
rake aborted!
LoadError: cannot load such file -- foodcritic
/home/zork/learn-chef-infra/chef-os-hardening/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

Running foodcritic returns:

Foodcritic has been deprecated. Use cookstyle instead, which provides over 200 Chef Infra cops with autocorrection! For more details see https://blog.chef.io/goodbye-foodcritic/
Ubuntu 18.04
Chef Workstation version: 20.12.187
Chef Infra Client version: 16.7.61
Chef InSpec version: 4.23.15
Chef CLI version: 3.0.33
Chef Habitat version: 1.6.181
Test Kitchen version: 2.8.0
Cookstyle version: 7.2.1

flybd5 avatar Dec 24 '20 01:12 flybd5