app/models/job_applications/posting.rb
Do not use spaces between ->
and opening brace in lambda literals Open
Open
scope :belonging_to_user, -> (user_id) { User.find(user_id).postings }
- Read upRead up
- Exclude checks
This cop checks for spaces between -> and opening parameter brace in lambda literals.
Example: EnforcedStyle: requirenospace (default)
# bad
a = -> (x, y) { x + y }
# good
a = ->(x, y) { x + y }
Example: EnforcedStyle: require_space
# bad
a = ->(x, y) { x + y }
# good
a = -> (x, y) { x + y }