File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ def print_context(message)
170170 # Returns array of problem.
171171 def report ( problems )
172172 json = [ ]
173+ print_stdout = !( configuration . json || configuration . sarif )
174+
173175 problems . each do |message |
174176 next if message [ :kind ] == :ignored && !PuppetLint . configuration . show_ignored
175177
@@ -179,11 +181,9 @@ def report(problems)
179181
180182 message [ :context ] = get_context ( message ) if configuration . with_context
181183
182- if configuration . json || configuration . sarif || configuration . codeclimate_report_file
183- json << message
184- end
184+ json << message
185185
186- unless configuration . json || configuration . sarif
186+ if print_stdout
187187 format_message ( message )
188188 print_github_annotation ( message ) if configuration . github_actions
189189 end
You can’t perform that action at this time.
0 commit comments