Skip to content

Commit

Permalink
Merge pull request #48 from voxpupuli/reenable_lint_checks
Browse files Browse the repository at this point in the history
feat: re-enable by puppetlabs disabled puppet-lint checks
  • Loading branch information
rwaffen authored Sep 6, 2024
2 parents ce7e4e4 + a9a7aa8 commit 3b1372f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ rake syntax:templates
rake test # Run tests
rake travis_release # Deprecated: use the "release" task instead
rake validate # Check syntax of Ruby files and call :syntax and :metadata_lint
rake voxpupuli:custom:lint_all # Lint with all puppet-lint checks
```

## Additionally included Tools
Expand Down
24 changes: 24 additions & 0 deletions voxbox/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,27 @@ require 'voxpupuli/release/rake_tasks'
require 'ra10ke'

Ra10ke::RakeTask.new

namespace :voxpupuli do
namespace :custom do
desc 'Lint with all puppet-lint checks'
task :lint_all do
# re-enable by puppetlabs disabled checks from puppetlabs/spec_helper
# see: https://github.com/puppetlabs/puppetlabs_spec_helper/blob/70de49db0a242f83e9ff39ea8a03c830339f8368/lib/puppetlabs_spec_helper/rake_tasks.rb#L169-L177
puppet_lint_enable_checks = %w[
140chars
class_inherits_from_params_class
class_parameter_defaults
autoloader_layout
documentation
single_quote_string_with_variables
]

puppet_lint_enable_checks.each do |check|
PuppetLint.configuration.send(:"enable_#{check}")
end

Rake::Task[:lint].invoke
end
end
end

0 comments on commit 3b1372f

Please sign in to comment.