From 6064f00f2cadb0710449d9f5662c3ddaedf64b0e Mon Sep 17 00:00:00 2001 From: David Siaw Date: Fri, 7 Jun 2024 16:44:11 +0900 Subject: [PATCH] rubocop appeasement --- .rubocop_todo.yml | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 797b66bf..9119b8f2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2022-08-05 04:59:54 UTC using RuboCop version 1.33.0. +# on 2024-06-07 07:43: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 @@ -15,7 +15,7 @@ Bundler/OrderedGems: - 'docs/Gemfile' # Offense count: 1 -# Configuration parameters: Include. +# Configuration parameters: Severity, Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: @@ -27,12 +27,6 @@ Layout/EmptyLinesAroundMethodBody: Exclude: - 'docs/source/main.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Lint/AmbiguousOperator: - Exclude: - - 'lib/kaiser/cli.rb' - # Offense count: 3 # Configuration parameters: AllowedMethods. # AllowedMethods: enums @@ -40,32 +34,31 @@ Lint/ConstantDefinitionInBlock: Exclude: - 'spec/plugin_spec.rb' -# Offense count: 11 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. +# Offense count: 13 +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 58 -# Offense count: 7 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 1 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. # AllowedMethods: refine Metrics/BlockLength: - Max: 162 + Max: 28 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Exclude: - - 'lib/kaiser/cli.rb' + Max: 477 # Offense count: 1 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +# Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 8 -# Offense count: 16 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 17 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: - Max: 44 + Max: 45 # Offense count: 1 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. @@ -74,7 +67,7 @@ Metrics/ParameterLists: # Offense count: 14 # Configuration parameters: ForbiddenDelimiters. -# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$)) +# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) Naming/HeredocDelimiterNaming: Exclude: - 'lib/kaiser/cmds/attach.rb' @@ -95,7 +88,7 @@ Naming/HeredocDelimiterNaming: # Offense count: 1 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer -# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 +# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64 Naming/VariableNumber: Exclude: - 'spec/plugin_spec.rb' @@ -107,7 +100,7 @@ Style/Documentation: # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https Layout/LineLength: Max: 134