We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b3f6eb commit a7d4777Copy full SHA for a7d4777
lib/metric_fu/metrics/rubocop/generator.rb
@@ -28,7 +28,11 @@ def run(args)
28
# @note passing in false to report will return a hash
29
# instead of the default String
30
# ::Rubocop::RubocopCalculator.new(args).report(false)
31
- results = JSON.parse(`rubocop --format html --out rubocop.html --format json`)
+ output = `rubocop --format html --out rubocop.html --format json`
32
+ while output =~ /RuboCop server starting/
33
34
+ end
35
+ results = JSON.parse(output)
36
summary = results.delete('summary')
37
summary.each do |k, v|
38
results[k] = v
0 commit comments