Skip to main content

Chef/Correctness/InvalidVersionMetadata

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Cookbook metadata.rb version field should follow X.Y.Z version format.

Examples

incorrect

version '1.2.3.4'

correct

version '1.2.3'

Configurable attributes

NameDefault valueConfigurable values
Version Added5.8.0String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×