Skip to content

Commit a728153

Browse files
committed
(GH-103) Parse /etc and ~/ config files
Fixes #103. This is a partial fix, we cannot parse .puppet-lint.rc files from the module root until we have a concept of module in the extension.
1 parent 4a254b6 commit a728153

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)