Skip to content

Commit 6437c34

Browse files
authored
Merge pull request #35 from ekohl/dont-cross-the-beams
Don't print GitHub annotations in JSON mode
2 parents 3f8feaf + ab74375 commit 6437c34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/puppet-lint.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ def report(problems)
177177
else
178178
format_message(message)
179179
print_context(message) if configuration.with_context
180+
print_github_annotation(message) if configuration.github_actions
180181
end
181-
182-
print_github_annotation(message) if configuration.github_actions
183182
end
184183
puts JSON.pretty_generate(json) if configuration.json
185184

0 commit comments

Comments
 (0)