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)
170
170
# Returns array of problem.
171
171
def report ( problems )
172
172
json = [ ]
173
+ print_stdout = !( configuration . json || configuration . sarif )
174
+
173
175
problems . each do |message |
174
176
next if message [ :kind ] == :ignored && !PuppetLint . configuration . show_ignored
175
177
@@ -179,11 +181,9 @@ def report(problems)
179
181
180
182
message [ :context ] = get_context ( message ) if configuration . with_context
181
183
182
- if configuration . json || configuration . sarif || configuration . codeclimate_report_file
183
- json << message
184
- end
184
+ json << message
185
185
186
- unless configuration . json || configuration . sarif
186
+ if print_stdout
187
187
format_message ( message )
188
188
print_github_annotation ( message ) if configuration . github_actions
189
189
end
You can’t perform that action at this time.
0 commit comments