Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address rubocop issues #208

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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