Skip to content

Commit 27fa6a2

Browse files
authored
Merge pull request #104 from austb/lint_rc_file
(GH-103) Parse /etc and ~/ config files
2 parents 4a254b6 + a728153 commit 27fa6a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/lib/puppet-languageserver/document_validator.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ def self.validate(content, _max_problems = 100)
77
problems = 0
88

99
begin
10+
# TODO: load .puppet-lint.rc from the module root as well
11+
PuppetLint::OptParser.build
1012
linter = PuppetLint::Checks.new
1113
problems = linter.run(nil, content)
1214
unless problems.nil?

0 commit comments

Comments
 (0)