dphaener/kanji

View on GitHub
lib/kanji/graph/container.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

      register :register_mutation, -> (params) { RegisterMutation.new(params) }
Severity: Minor
Found in lib/kanji/graph/container.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 }

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

      register :register_object, -> (params) { RegisterObject.new(params) }
Severity: Minor
Found in lib/kanji/graph/container.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