Skip to content

Commit ab74375

Browse files
committed
Don't print GitHub annotations in JSON mode
The output does not mix well. This does mean the PDK can't use these annotations, but at least it doesn't break it either.
1 parent 3f8feaf commit ab74375

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)