NerdDiffer/job_tracker

View on GitHub
app/models/note.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not use spaces between -> and opening brace in lambda literals
Open

  scope :belonging_to_user, -> (user_id) { where(user_id: user_id) }
Severity: Minor
Found in app/models/note.rb by rubocop

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 }

There are no issues that match your filters.

Category
Status