diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9b46e4f..f0e0752 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. @@ -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: @@ -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' diff --git a/lib/rspec/openapi/shared_hooks.rb b/lib/rspec/openapi/shared_hooks.rb index 2069cea..f94b0c2 100644 --- a/lib/rspec/openapi/shared_hooks.rb +++ b/lib/rspec/openapi/shared_hooks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module SharedHooks def self.find_extractor if defined?(Rails) && Rails.respond_to?(:application) && Rails.application