Skip to main content

SupportsMustBeFloat

All Cookstyle Cops


The department is: Chef/Correctness

The full name of the cop is: Chef/Correctness/SupportsMustBeFloat


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Versions used in metadata.rb supports calls should be floats not integers.

Examples

incorrect

supports 'redhat', '> 8'

correct

supports 'redhat', '> 8.0'

Configurable attributes

NameDefault valueConfigurable values
Version Added6.13.0String
Include
  • **/metadata.rb
Array

Was this page helpful?