Skip to content

Commit

Permalink
Fix Naming/RescuedExceptionsVariableName cop.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Feb 15, 2020
1 parent 3121ad0 commit 1b8f1a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ Naming/MemoizedInstanceVariableName:
Naming/MethodParameterName:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
Exclude:
- 'samples/zipfind.rb'

# Offense count: 721
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Expand Down
4 changes: 2 additions & 2 deletions samples/zipfind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def self.find(path, zipFilePattern = /\.zip$/i)
Zip::File.foreach(fileName) do |zipEntry|
yield(fileName + File::SEPARATOR + zipEntry.to_s)
end
rescue Errno::EACCES => ex
puts ex
rescue Errno::EACCES => e
puts e
end
end
end
Expand Down

0 comments on commit 1b8f1a6

Please sign in to comment.