Module: PDQTest::Lint
- Defined in:
- lib/pdqtest/lint.rb
Constant Summary collapse
- LINT_PATHS =
[ "manifests" ]
- LINT_OPTIONS =
[ "--relative", "--fail-on-warnings", "--no-double_quoted_strings-check", "--no-80chars-check", "--no-variable_scope-check", "--no-quoted_booleans-check", ]
Class Method Summary collapse
Class Method Details
.puppet ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/pdqtest/lint.rb', line 16 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 } PDQTest::Emoji.partial_status(status, 'Linter') status end |