Skip to content

Commit

Permalink
MCO-136 disable Style/SymbolProc
Browse files Browse the repository at this point in the history
Style/SymbolProc prefers

    things.map { |t| t.to_i }

be expressed as:

    things.map(&:to_i)

It's only the smallest of performance gains, but the readbility hit is real.
  • Loading branch information
richardc committed Oct 24, 2014
1 parent d684b85 commit fbeafd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ Style/SingleLineMethods:
Style/SpecialGlobalVars:
Enabled: false

# DISABLED - minor performance gain for major readability hit
Style/SymbolProc:
Enabled: false

Style/TrivialAccessors:
Enabled: false

Expand Down

0 comments on commit fbeafd9

Please sign in to comment.