Skip to content

Commit c22e5c4

Browse files
authored
Merge branch 'main' into modulesync
2 parents 64fdbd4 + 3b1372f commit c22e5c4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ rake syntax:templates
108108
rake test # Run tests
109109
rake travis_release # Deprecated: use the "release" task instead
110110
rake 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

voxbox/Rakefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,27 @@ require 'voxpupuli/release/rake_tasks'
44
require 'ra10ke'
55

66
Ra10ke::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

0 commit comments

Comments
 (0)