Skip to content

Commit 0554440

Browse files
committed
feat: re-enable by puppetlabs disabled puppet-lint checks
Signed-off-by: Robert Waffen <[email protected]>
1 parent ce7e4e4 commit 0554440

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ rake module:bump_to_version[new_version]
6767
rake module:clean # Runs clean again
6868
rake module:dependency[module_name,version] # Set specific module dependency version
6969
rake module:push # Push module to the Puppet Forge
70-
rake module:release # Release the Puppet module, doing a clean, build, bump_commit, tag, push and git push
70+
rake module:release # Release the Puppet module, doing a clean, build, bump_commit...
7171
rake module:tag # Git tag with the current module version
7272
rake module:version # Get current module version
7373
rake module:version:next # Get next module version
7474
rake module:version:next:major # Get the next MAJOR version
7575
rake module:version:next:minor # Get the next MINOR version
7676
rake module:version:next:patch # Get the next PATCH version
77-
rake parallel_spec # Run spec tests in parallel and clean the fixtures directory if successful
77+
rake parallel_spec # Run spec tests in parallel and clean the fixtures directory ...
7878
rake parallel_spec_standalone # Parallel spec tests
7979
rake r10k:dependencies # Print outdated forge modules
8080
rake r10k:deprecation # Validate that no forge modules are deprecated
@@ -86,7 +86,7 @@ rake r10k:syntax
8686
rake r10k:validate # Validate the git urls and branches, refs, or tags
8787
rake release # Release via GitHub Actions
8888
rake release:prepare # Prepare a release
89-
rake release_checks # Runs all necessary checks on a module in preparation for a release
89+
rake release_checks # Runs all necessary checks on a module in preparation for a r...
9090
rake rubocop # Run RuboCop
9191
rake rubocop:autocorrect # Autocorrect RuboCop offenses (only when it's safe)
9292
rake rubocop:autocorrect_all # Autocorrect RuboCop offenses (safe and unsafe)
@@ -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)