File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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).
Original file line number Diff line number Diff line change 66require 'benchmark'
77require 'ruby-prof'
88a = [
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
2727b = a . map { |ns , nu | Unit . new ( ns . to_d , nu ) }
You can’t perform that action at this time.
0 commit comments