rodjek/puppet-lint — Issue #68: disable tests on arbitrary lines or over blocks of code
Author: ccaviness
Created: 2012-02-02 22:02:12+00:00
State: open

Sometimes it may be necessary to disable specific tests on a particular line or block of code.

A common example would be disabling the 80-character check on a comment containing a CVS-style keywords:
`# $Id: /some/really/long/path/of/nested/subdirs/puppet/environment/modules/somemodule/manifests/init.pp#5 $`

I would like this to be similar to what pylint (http://www.logilab.org/card/pylint_manual) can do - put a comment like `# puppet-lint: disable=80chars-check` or similar at the end of a line and it doesn't lint that line for that check. To disable a check for a block of lines, surround it with `# puppet-lint: disable=whatever` [...] `# puppet-lint: enable=whatever`

See https://github.com/rodjek/puppet-lint/issues/34 for some initial discussion.