Configure Naming/MemoizedInstanceVariableName cop.
This commit is contained in:
parent
835843d992
commit
7978abb85e
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue