From 4ac27e3ee0d5498e0998dc37582e4f15bca50598 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 5 Mar 2026 00:13:28 +0000 Subject: [PATCH] Update rubocop todo file --- .rubocop_todo.yml | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ae8a0db67..e042fd036 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2026-01-14 11:34:22 UTC using RuboCop version 1.82.1. +# on 2026-03-05 00:12:44 UTC using RuboCop version 1.85.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 @@ -37,12 +37,12 @@ Lint/AssignmentInCondition: - 'lib/osm.rb' - 'script/deliver-message' -# Offense count: 851 +# Offense count: 858 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 186 -# Offense count: 55 +# Offense count: 53 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. # AllowedMethods: refine Metrics/BlockLength: @@ -63,7 +63,7 @@ Metrics/ClassLength: Metrics/CyclomaticComplexity: Max: 22 -# Offense count: 989 +# Offense count: 997 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 179 @@ -73,7 +73,7 @@ Metrics/MethodLength: Metrics/ParameterLists: Max: 6 -# Offense count: 66 +# Offense count: 68 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/PerceivedComplexity: Max: 26 @@ -83,7 +83,7 @@ Metrics/PerceivedComplexity: Minitest/EmptyLineBeforeAssertionMethods: Enabled: false -# Offense count: 890 +# Offense count: 893 Minitest/MultipleAssertions: Max: 55 @@ -160,6 +160,13 @@ Rake/Desc: - 'lib/tasks/subscribe_diary_authors.rake' - 'lib/tasks/subscribe_old_changesets.rake' +# Offense count: 4 +Style/FileOpen: + Exclude: + - 'app/models/trace.rb' + - 'lib/gpx.rb' + - 'test/helpers/user_helper_test.rb' + # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: @@ -172,7 +179,20 @@ Style/IfUnlessModifier: Style/NumericLiterals: MinDigits: 15 -# Offense count: 690 +# Offense count: 17 +# Configuration parameters: AllowedClasses. +Style/OneClassPerFile: + Exclude: + - 'config/initializers/i18n.rb' + - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb' + - 'test/abilities/abilities_test.rb' + - 'test/abilities/api_abilities_test.rb' + - 'test/abilities/api_capability_test.rb' + - 'test/system/embed_test.rb' + - 'test/validators/characters_validator_test.rb' + - 'test/validators/whitespace_validator_test.rb' + +# Offense count: 705 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings. # URISchemes: http, https -- 2.47.3