File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,14 @@ def report(problems)
158158
159159 message [ :KIND ] = message [ :kind ] . to_s . upcase
160160
161- if message [ :kind ] == :fixed || [ message [ :kind ] , :all ] . include? ( configuration . error_level )
162- if configuration . json
163- message [ 'context' ] = get_context ( message ) if configuration . with_context
164- json << message
165- else
166- format_message ( message )
167- print_context ( message ) if configuration . with_context
168- end
161+ next unless message [ :kind ] == :fixed || [ message [ :kind ] , :all ] . include? ( configuration . error_level )
162+
163+ if configuration . json
164+ message [ 'context' ] = get_context ( message ) if configuration . with_context
165+ json << message
166+ else
167+ format_message ( message )
168+ print_context ( message ) if configuration . with_context
169169 end
170170 end
171171 puts JSON . pretty_generate ( json ) if configuration . json
You can’t perform that action at this time.
0 commit comments