Fix/configure Style/AccessorGrouping cop.
This commit is contained in:
parent
3131e6a4aa
commit
55ed74c20e
|
@ -64,6 +64,11 @@ Naming/VariableNumber:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'test/file_permissions_test.rb'
|
- 'test/file_permissions_test.rb'
|
||||||
|
|
||||||
|
# Need to allow accessors in Entry to be separated for doc purposes.
|
||||||
|
Style/AccessorGrouping:
|
||||||
|
Exclude:
|
||||||
|
- 'lib/zip/entry.rb'
|
||||||
|
|
||||||
# Set a consistent way of checking types.
|
# Set a consistent way of checking types.
|
||||||
Style/ClassCheck:
|
Style/ClassCheck:
|
||||||
EnforcedStyle: kind_of?
|
EnforcedStyle: kind_of?
|
||||||
|
|
|
@ -51,15 +51,6 @@ Naming/AccessorMethodName:
|
||||||
- 'lib/zip/input_stream.rb'
|
- 'lib/zip/input_stream.rb'
|
||||||
- 'lib/zip/streamable_stream.rb'
|
- 'lib/zip/streamable_stream.rb'
|
||||||
|
|
||||||
# Offense count: 4
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: separated, grouped
|
|
||||||
Style/AccessorGrouping:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/zip/decompressor.rb'
|
|
||||||
- 'lib/zip/entry.rb'
|
|
||||||
|
|
||||||
# Offense count: 7
|
# Offense count: 7
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
|
|
|
@ -16,8 +16,7 @@ module Zip
|
||||||
decompressor_classes[compression_method]
|
decompressor_classes[compression_method]
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_reader :input_stream
|
attr_reader :decompressed_size, :input_stream
|
||||||
attr_reader :decompressed_size
|
|
||||||
|
|
||||||
def initialize(input_stream, decompressed_size = nil)
|
def initialize(input_stream, decompressed_size = nil)
|
||||||
super()
|
super()
|
||||||
|
|
Loading…
Reference in New Issue