From ae4d22e76f91727c0254a5a8f0f5abbd0148c409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Sat, 13 Jan 2024 20:51:35 +0900 Subject: [PATCH] Fix minor rubocop offenses (#170) --- .rubocop_todo.yml | 26 ++++++++++++++++++-------- spec/roda/doc/rspec_openapi.rb | 2 ++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1e491a61..8c58aef0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,25 +1,35 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-04-14 06:22:29 UTC using RuboCop version 1.49.0. +# on 2024-01-13 11:12:43 UTC using RuboCop version 1.50.2. # 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: 10 +# Offense count: 9 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: - Max: 31 + Max: 48 + +# Offense count: 2 +# Configuration parameters: CountComments, CountAsOne. +Metrics/ClassLength: + Max: 192 -# Offense count: 4 +# Offense count: 5 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: - Max: 10 + Max: 13 -# Offense count: 13 +# Offense count: 16 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: - Max: 30 + Max: 31 + +# Offense count: 1 +# Configuration parameters: AllowedMethods, AllowedPatterns. +Metrics/PerceivedComplexity: + Max: 13 # Offense count: 1 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. @@ -29,7 +39,7 @@ Naming/VariableNumber: Exclude: - 'spec/integration_tests/roda_test.rb' -# Offense count: 5 +# Offense count: 6 # Configuration parameters: AllowedConstants. Style/Documentation: Exclude: diff --git a/spec/roda/doc/rspec_openapi.rb b/spec/roda/doc/rspec_openapi.rb index 58742e3d..b5788120 100644 --- a/spec/roda/doc/rspec_openapi.rb +++ b/spec/roda/doc/rspec_openapi.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + RSpec::OpenAPI.title = 'Override title' RSpec::OpenAPI.application_version = '7.7.7'