Configure Naming/MemoizedInstanceVariableName cop.

This commit is contained in:
Robert Haines 2019-09-22 17:32:00 +01:00
parent 835843d992
commit 7978abb85e
2 changed files with 6 additions and 8 deletions

View File

@ -16,6 +16,12 @@ Lint/UselessComparison:
Exclude:
- 'test/entry_test.rb'
# Rubocop confuses these as instances of "memoization".
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/zip/extra_field/old_unix.rb'
- 'lib/zip/extra_field/unix.rb'
# Allow this multi-line block chain as it actually reads better
# than the alternatives.
Style/MultilineBlockChain:

View File

@ -69,14 +69,6 @@ Naming/BlockParameterName:
- 'test/output_stream_test.rb'
- 'test/test_helper.rb'
# Offense count: 2
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/zip/extra_field/old_unix.rb'
- 'lib/zip/extra_field/unix.rb'
# Offense count: 140
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db, os