File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ rake syntax:templates
108108rake test # Run tests
109109rake travis_release # Deprecated: use the "release" task instead
110110rake validate # Check syntax of Ruby files and call :syntax and :metadata_lint
111+ rake voxpupuli:custom:lint_all # Lint with all puppet-lint checks
111112```
112113
113114## Additionally included Tools
Original file line number Diff line number Diff line change @@ -4,3 +4,27 @@ require 'voxpupuli/release/rake_tasks'
44require 'ra10ke'
55
66Ra10ke ::RakeTask . new
7+
8+ namespace :voxpupuli do
9+ namespace :custom do
10+ desc 'Lint with all puppet-lint checks'
11+ task :lint_all do
12+ # re-enable by puppetlabs disabled checks from puppetlabs/spec_helper
13+ # see: https://github.com/puppetlabs/puppetlabs_spec_helper/blob/70de49db0a242f83e9ff39ea8a03c830339f8368/lib/puppetlabs_spec_helper/rake_tasks.rb#L169-L177
14+ puppet_lint_enable_checks = %w[
15+ 140chars
16+ class_inherits_from_params_class
17+ class_parameter_defaults
18+ autoloader_layout
19+ documentation
20+ single_quote_string_with_variables
21+ ]
22+
23+ puppet_lint_enable_checks . each do |check |
24+ PuppetLint . configuration . send ( :"enable_#{ check } " )
25+ end
26+
27+ Rake ::Task [ :lint ] . invoke
28+ end
29+ end
30+ end
You can’t perform that action at this time.
0 commit comments