Skip to content

Commit 3c25a3e

Browse files
committed
fix rubocop issues
1 parent 4a0f6fe commit 3c25a3e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ Style/TrailingCommaInHashLiteral:
7575

7676
Style/TrailingCommaInArrayLiteral:
7777
EnforcedStyleForMultiline: "comma"
78+
79+
Gemspec/RequireMFA:
80+
Enabled: false

lib/simplecov-html.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
1111
if major < 0 || minor < 9 || patch < 0
1212
raise "The version of SimpleCov you are using is too old. "\
13-
"Please update with `gem install simplecov` or `bundle update simplecov`"
13+
"Please update with `gem install simplecov` or `bundle update simplecov`"
1414
end
1515

1616
module SimpleCov
@@ -146,9 +146,9 @@ def render_stats(result, criterion)
146146

147147
Kernel.format(
148148
"%<covered>d / %<total>d (%<percent>.2f%%)",
149-
:covered => stats.covered,
150-
:total => stats.total,
151-
:percent => stats.percent
149+
covered: stats.covered,
150+
total: stats.total,
151+
percent: stats.percent
152152
)
153153
end
154154
end

0 commit comments

Comments
 (0)