Sha256: 991cb817faf8d2fd4a4703d0df10aa8d0a9a88c3c3a03107f49835e5ee3a7276
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
puppet-lint-undef_in_function-check ================================= [](https://travis-ci.org/camptocamp/puppet-lint-undef_in_function-check) [](https://codeclimate.com/github/camptocamp/puppet-lint-undef_in_function-check) [](http://badge.fury.io/rb/puppet-lint-undef_in_function-check) [](https://coveralls.io/r/camptocamp/puppet-lint-undef_in_function-check?branch=master) A puppet-lint plugin to check for undef in function calls. ## Checks ### Undef passed to a function When functions are called, `undef` is cast into an empty string. Passing `undef` to a function is most likely not what you mean to do. #### What you have done ```puppet somefunction(undef) ``` #### What you should have done ```puppet somefunction('') ``` #### Disabling the check To disable this check, you can add `--no-undef_in_function_assignment-check` to your puppet-lint command line. ```shell $ puppet-lint --no-undef_in_function_assignment-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_undef_in_function_assignment') ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-undef_in_function-check-0.1.0 | README.md |