Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Jun 14, 2024
1 parent 462f692 commit 47a0c73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ Lint/RescueException:
# Offense count: 19
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 156
Max: 158

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 40

# Offense count: 3
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 4

# Offense count: 9
# Configuration parameters: AllowedMethods, AllowedPatterns.
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp/client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def read_loop
READ_EXCEPTIONS = [IOError, OpenSSL::OpenSSLError, SystemCallError,
RUBY_ENGINE == "jruby" ? java.lang.NullPointerException : nil].compact.freeze

def parse_frame(type, channel_id, buf) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
def parse_frame(type, channel_id, buf) # rubocop:disable Metrics/MethodLength
channel = @channels[channel_id]
case type
when 1 # method frame
Expand Down

0 comments on commit 47a0c73

Please sign in to comment.