Sha256: 08920693a4b0bdaa07f23f9c3f318ea7110b2dcfda4b9180c0a25fd706726291
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
puppet-lint-leading_zero-check ================================= [](https://travis-ci.org/camptocamp/puppet-lint-leading_zero-check) [](https://codeclimate.com/github/camptocamp/puppet-lint-leading_zero-check) [](http://badge.fury.io/rb/puppet-lint-leading_zero-check) [](https://coveralls.io/r/camptocamp/puppet-lint-leading_zero-check?branch=master) A puppet-lint plugin to check for unquoted numbers with leading zero. ## Checks ### Unquoted number with leading zero In the future parser numbers are automatically casted. If you mean to keep a leading zero in front of a number, you need to use a string. #### What you have done ```puppet $order = 010 ``` #### What you should have done ```puppet $order = '010' ``` #### Disabling the check To disable this check, you can add `--no-leading_zero-check` to your puppet-lint command line. ```shell $ puppet-lint --no-leading_zero-check path/to/file.pp ``` Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your `Rakefile`. ```ruby PuppetLint.configuration.send('disable_leading_zero') ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-leading_zero-check-0.1.0 | README.md |