Skip to content

Commit

Permalink
Disable the MemoizedInstanceVariableName Rubocop
Browse files Browse the repository at this point in the history
Unfortunately Rubocop does not support an alternative syntax for the MemoizedInstanceVariableName cop. We use a lot of `@_method_name` instance vars, what I think is preferable as this marks these variables as private (the same way Rails does it).
  • Loading branch information
tvdeyen committed Apr 11, 2018
1 parent 1cd122f commit d1162ff
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 @@ -275,6 +275,10 @@ Metrics/PerceivedComplexity:
Naming/AccessorMethodName:
Enabled: false

# This cop is great but has no config option to support the style `@_method_name` we are using.
Naming/MemoizedInstanceVariableName:
Enabled: false

# We need these names for backwards compatability
Naming/PredicateName:
Enabled: false
Expand Down

0 comments on commit d1162ff

Please sign in to comment.