Project

General

Profile

« Previous | Next » 

Revision bb3572ff

Added by Daniel Lobato Garcia over 8 years ago

Refs #3809 - Stabby lambda syntax for oneliners

I started by spotting log.rb which didn't have a lambda wrapping its
default scope, as needed by Rails 4. Since the style guide and most
Rails 4 documents used the stabby lambda, I turned on the cop so that we
use it everywhere there's a oneliner lambda.

View differences:

.rubocop_todo.yml
Style/GuardClause:
Enabled: false
# Offense count: 91
Style/Lambda:
Enabled: false
# Offense count: 183
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
......
Style/MethodName:
Enabled: false
# Offense count: 11
# Cop supports --auto-correct.
Style/MultilineBlockLayout:
Enabled: false
# Offense count: 121
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.

Also available in: Unified diff