Skip to content

Commit

Permalink
Address rubocop issues (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Apr 12, 2024
1 parent 12892b0 commit 1455002
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-04-01 14:13:50 UTC using RuboCop version 1.62.1.
# on 2024-04-12 14:06:44 UTC using RuboCop version 1.62.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 11
# Offense count: 13
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 49
Max: 47

# Offense count: 2
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 195

# Offense count: 8
# Offense count: 9
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 13
Max: 12

# Offense count: 19
# Offense count: 22
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 36

# Offense count: 4
# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 13
Max: 12

# Offense count: 1
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
Expand All @@ -39,7 +39,7 @@ Naming/VariableNumber:
Exclude:
- 'spec/integration_tests/roda_test.rb'

# Offense count: 6
# Offense count: 7
# Configuration parameters: AllowedConstants.
Style/Documentation:
Exclude:
Expand All @@ -49,3 +49,4 @@ Style/Documentation:
- 'lib/rspec/openapi/minitest_hooks.rb'
- 'lib/rspec/openapi/result_recorder.rb'
- 'lib/rspec/openapi/schema_file.rb'
- 'lib/rspec/openapi/shared_hooks.rb'
2 changes: 2 additions & 0 deletions lib/rspec/openapi/shared_hooks.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module SharedHooks
def self.find_extractor
if defined?(Rails) && Rails.respond_to?(:application) && Rails.application
Expand Down

0 comments on commit 1455002

Please sign in to comment.