From 5d7bf65d3111d5f7e9340801f6d2d69b3f3448ce Mon Sep 17 00:00:00 2001 From: Alexandre Podlewski Date: Tue, 12 Dec 2023 15:55:54 +0100 Subject: [PATCH] Disable some linter warnings --- .rubocop_todo.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 216f3e7..37084ef 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-12-06 17:19:54 UTC using RuboCop version 1.58.0. +# on 2023-12-12 14:55:05 UTC using RuboCop version 1.58.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 @@ -27,10 +27,10 @@ Lint/UnusedMethodArgument: - 'lib/ad_localize/interactors/base_generate_files.rb' - 'lib/ad_localize/serializers/templated_serializer.rb' -# Offense count: 6 +# Offense count: 7 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: - Max: 30 + Max: 31 # Offense count: 4 # Configuration parameters: CountComments, CountAsOne. @@ -40,13 +40,18 @@ Metrics/ClassLength: # Offense count: 1 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: - Max: 8 + Max: 9 # Offense count: 13 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 27 +# Offense count: 1 +# Configuration parameters: AllowedMethods, AllowedPatterns. +Metrics/PerceivedComplexity: + Max: 9 + # Offense count: 1 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to @@ -142,7 +147,7 @@ Style/GuardClause: Exclude: - 'lib/ad_localize/repositories/drive_repository.rb' -# Offense count: 14 +# Offense count: 15 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys @@ -278,7 +283,7 @@ Style/StringConcatenation: - 'lib/ad_localize/serializers/strings_serializer.rb' - 'lib/ad_localize/serializers/templated_serializer.rb' -# Offense count: 105 +# Offense count: 142 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes @@ -292,7 +297,7 @@ Style/ZeroLengthPredicate: - 'lib/ad_localize/mappers/locale_wording_to_hash.rb' - 'test/repositories/drive_repository_test.rb' -# Offense count: 14 +# Offense count: 15 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https