Case statements should have default cases. Additionally, the default case
should fail the catalog compilation when the resulting behavior cannot be
predicted on the majority of platforms the module will be used on. If you want
the default case to be “do nothing,” include it as an explicit default: {}
for clarity’s sake (style guide).
To disable this check you can add --no-case_without_default-check
to your
puppet-lint
command line.
Alternatively, if you’re calling puppet-lint via the Rake task, you should
insert the following line to your Rakefile
.