Releases: rodjek/puppet-lint
Releases · rodjek/puppet-lint
1.0.1
Bug fixes
- Fixed bug where array/hash access would cause a
top_scope_variablefalse positive. - Fixed bug where puppet-lint would throw an exception when running the
arrow_alignmentcheck over a resource with more than one parameter and one of the parameters has an empty hash as its value.
1.0.0
New features
- Support for using control comments to disable arbitrary tests.
- Support for automatically fixing many common problems found with puppet-lint.
- Added
puppet_url_without_modulescheck to warn whenpuppet://URLs are used without the path starting withmodules/. - Rake task now reads puppet-lint configuration from
puppet-lint.rcfiles. - Added
unquoted_node_namecheck to warn when unquoted node names are found. - Added
-c/--configoption to specify a custom path topuppet-lint.rc. - puppet-lint will now automatically add the filename to the output if multiple files are being linted.
- Added support for the future parsers loop syntax. Variables defined and used inside a loop-local scope will no longer throw
variable_scopewarnings. - Like URLs, long
template()lines will no longer throw80charswarnings. - Added support to puppet-lint to specify certain checks to run, rather than having to disable all the checks but the desired ones.
- The
arrow_alignmentcheck now throws a warning if the arrows aren’t aligned as close to the parameter name as possible. - Added
--relativeflag which will have theautoloader_layoutcheck ignore the top-most directory (good for cases where the module hosted publicly in a puppet- directory).
Removed features
- Removed the
class_parameter_defaultscheck. %{linenumber}has been deprecated in the output format string and will be removed in the next major release. You should use%{line}instead.
Bug fixes
- Added support for more recognised escape characters (
\$,\",\',\r) to thedouble_quoted_stringscheck. - Fixed bug where running with
--with-contextwould occasionally throw aniloffset error. - Added support to the lexer for the modulo (
%) character. - Fixed bug where a class or defined type argument with a default value of a Hash would throw a false
variable_scopewarning. - Fixed bug where auditing a file mode would throw false
file_modewarning. - Fixed bug where line endings containing a carriage return (the default for most non Unix-like systems) would throw a syntax error.
- Fixed bug where a double quoted string containing a single quoted string would throw a false
double_quoted_stringwarning. - puppet-lint will no longer throw
only_variable_stringwarnings when using quoted variables as Hash keys. - Rake task now exits cleanly when errors have been found.