Slide 10
Slide 10 text
Missed errors
—
RuboCop does its job quite well
suggesting following Ruby Code Style.
The real error on line 5 is missed,
though.
(downcase is not a method of Hash)
Inspecting 1 file
C
Offenses:
rubocop_fails.rb:1:1: C: Missing frozen string literal comment.
x = "123"
^
rubocop_fails.rb:1:5: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
x = "123"
^^^^^
rubocop_fails.rb:4:5: C: Space inside { missing.
x = {:a => '1', :b => '2', :c => '3'}
^
rubocop_fails.rb:4:6: C: Use the new Ruby 1.9 hash syntax.
x = {:a => '1', :b => '2', :c => '3'}
^^^^^
rubocop_fails.rb:4:17: C: Use the new Ruby 1.9 hash syntax.
x = {:a => '1', :b => '2', :c => '3'}
^^^^^
rubocop_fails.rb:4:28: C: Use the new Ruby 1.9 hash syntax.
x = {:a => '1', :b => '2', :c => '3'}
^^^^^
rubocop_fails.rb:4:37: C: Space inside } missing.
x = {:a => '1', :b => '2', :c => '3'}
^
1 file inspected, 7 offenses detected