Skip to content

Commit

Permalink
Fix Naming/HeredocDelimiterCase cop.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Sep 22, 2019
1 parent 1f99b04 commit 2db7342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_rubyzip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ Naming/AccessorMethodName:
- 'lib/zip/streamable_stream.rb'
- 'test/file_permissions_test.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lowercase, uppercase
Naming/HeredocDelimiterCase:
Exclude:
- 'lib/zip/filesystem.rb'
- 'test/test_helper.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Expand Down
4 changes: 2 additions & 2 deletions lib/zip/filesystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ class ZipFsStat
class << self
def delegate_to_fs_file(*methods)
methods.each do |method|
class_eval <<-end_eval, __FILE__, __LINE__ + 1
class_eval <<-END_EVAL, __FILE__, __LINE__ + 1
def #{method} # def file?
@zipFsFile.#{method}(@entryName) # @zipFsFile.file?(@entryName)
end # end
end_eval
END_EVAL
end
end
end
Expand Down

0 comments on commit 2db7342

Please sign in to comment.