Skip to content

Commit c817dc7

Browse files
committed
Fix array indentiation
1 parent fd92a51 commit c817dc7

2 files changed

Lines changed: 16 additions & 23 deletions

File tree

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 1
10-
# This cop supports safe autocorrection (--autocorrect).
11-
# Configuration parameters: EnforcedStyle, IndentationWidth.
12-
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
13-
Layout/FirstArrayElementIndentation:
14-
Exclude:
15-
- 'spec/benchmarks/bigdecimal.rb'
169

1710
# Offense count: 29
1811
# This cop supports safe autocorrection (--autocorrect).

spec/benchmarks/bigdecimal.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
require 'benchmark'
77
require 'ruby-prof'
88
a = [
9-
[2.025, "gal"],
10-
[5.575, "gal"],
11-
[8.975, "gal"],
12-
[1.5, "gal"],
13-
[9, "gal"],
14-
[1.85, "gal"],
15-
[2.25, "gal"],
16-
[1.05, "gal"],
17-
[4.725, "gal"],
18-
[3.55, "gal"],
19-
[4.725, "gal"],
20-
[3.75, "gal"],
21-
[6.275, "gal"],
22-
[0.525, "gal"],
23-
[3.475, "gal"],
24-
[0.85, "gal"]
9+
[2.025, "gal"],
10+
[5.575, "gal"],
11+
[8.975, "gal"],
12+
[1.5, "gal"],
13+
[9, "gal"],
14+
[1.85, "gal"],
15+
[2.25, "gal"],
16+
[1.05, "gal"],
17+
[4.725, "gal"],
18+
[3.55, "gal"],
19+
[4.725, "gal"],
20+
[3.75, "gal"],
21+
[6.275, "gal"],
22+
[0.525, "gal"],
23+
[3.475, "gal"],
24+
[0.85, "gal"]
2525
]
2626

2727
b = a.map{|ns,nu| Unit.new(ns.to_d, nu)}

0 commit comments

Comments
 (0)