Cookstyle 6.19 released with 2 new Chef Cops!

Hey folks,

We have a nice new release of Cookstyle out today with 2 new Chef Infra cops to make the migration to the Effortless pattern easier, as well as some nice bug fixes and improvements.

RuboCop 0.92.0

RuboCop has been updated to 0.92.0, which includes a large number of bug fixes to the built-in RuboCop cops that Cookstyle uses.

2 New Chef Infra Cops

ChefEffortless/ChefVaultUsed

The ChefEffortless/ChefVaultUsed cop detects cookbooks that use the Chef Vault helpers to access Chef Vault encrypted data bag secrets. Chef Vault is not compatible with the Chef Infra Effortless pattern and users will need to migrate to a different secrets storage system.

Enabled by default: False

Autocorrects: False

ChefEffortless/DependsChefVault

The ChefEffortless/DependsChefVault cop detects cookbooks that depend on the chef-vault cookbook. Chef Vault is not compatible with the Chef Infra Effortless pattern and users will need to migrate to a different secrets storage system.

Enabled by default: False

Autocorrects: False

Other Improvements

  • The performance of the ChefStyle/CommentFormat and ChefCorrectness/IncorrectLibraryInjection cops have been greatly improved.
  • The ChefModernize/RespondToInMetadata cop now detects additional methods of gating metadata for legacy Chef Infra Client releases.

Enjoy,
Tim