diff --git a/.rubocop.yml b/.rubocop.yml index 2d61729..f9b898d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,3 +6,7 @@ AllCops: ExtraDetails: true UseCache: true NewCops: enable + SuggestExtensions: false + +Style/HashSyntax: + EnforcedShorthandSyntax: never diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 014768f..7c916c6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,13 +1,13 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 99999999` -# on 2023-04-19 12:16:33 UTC using RuboCop version 1.28.2. +# on 2024-01-11 10:49:40 UTC using RuboCop version 1.59.0. # 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: 1 -# Configuration parameters: Include. +# Configuration parameters: Severity, Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: @@ -20,23 +20,24 @@ Lint/EmptyBlock: - 'spec/spec_helper.rb' # Offense count: 1 +# Configuration parameters: AllowedParentClasses. Lint/MissingSuper: Exclude: - 'lib/postcode_anywhere/bank_account_validation.rb' # Offense count: 2 -# Configuration parameters: IgnoredMethods, CountRepeatedAttributes. +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 58 # Offense count: 1 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. -# IgnoredMethods: refine +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. +# AllowedMethods: refine Metrics/BlockLength: Max: 82 # Offense count: 2 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 26 @@ -49,9 +50,9 @@ Naming/FileName: - 'lib/ruby-postcodeanywhere.rb' # Offense count: 5 -# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers. +# 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: - 'lib/ruby-postcodeanywhere.rb' @@ -61,7 +62,7 @@ Style/ClassVars: Exclude: - 'lib/ruby-postcodeanywhere.rb' -# Offense count: 5 +# Offense count: 7 # Configuration parameters: AllowedConstants. Style/Documentation: Exclude: @@ -70,9 +71,9 @@ Style/Documentation: - 'lib/postcode_anywhere/bank_account_validation.rb' - 'lib/ruby-postcodeanywhere.rb' -# Offense count: 2 -# This cop supports safe auto-correction (--auto-correct). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https Layout/LineLength: Max: 200