Module: PDQTest::Lint
- Defined in:
- lib/pdqtest/lint.rb
Constant Summary collapse
- LINT_PATHS =
[ "manifests" ]
- LINT_OPTIONS =
[ "--fail-on-warnings", "--no-double_quoted_strings-check", "--no-80chars-check", "--no-variable_scope-check", ]
Class Method Summary collapse
Class Method Details
.puppet ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/pdqtest/lint.rb', line 13 def self.puppet status = true LINT_PATHS.each { |p| if Dir.exists?(p) if ! system("puppet-lint #{LINT_OPTIONS.join ' '} manifests") status = false end end } status end |