From 3c3b5916556d5089ee780e62576c1174fd4e99a0 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Fri, 5 Dec 2025 10:10:39 +1100 Subject: [PATCH] Updated rubocop_todo to include new cops --- .rubocop_todo.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5f259df45c..44b81f61db 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 1400 --no-auto-gen-timestamp` -# using RuboCop version 1.81.6. +# using RuboCop version 1.81.7. # 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 @@ -133,7 +133,7 @@ Metrics/ClassLength: - 'lib/reporting/reports/enterprise_fee_summary/scope.rb' - 'lib/reporting/reports/xero_invoices/base.rb' -# Offense count: 35 +# Offense count: 37 # Configuration parameters: AllowedMethods, AllowedPatterns, Max. Metrics/CyclomaticComplexity: Exclude: @@ -234,7 +234,7 @@ Naming/MethodParameterName: Exclude: - 'engines/dfc_provider/lib/dfc_provider/catalog_item.rb' -# Offense count: 59 +# Offense count: 60 # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates. # AllowedMethods: call # WaywardPredicates: nonzero? @@ -335,6 +335,24 @@ Rails/OrderArguments: - 'spec/services/orders/generate_invoice_service_spec.rb' - 'spec/system/admin/order_cycles/simple_spec.rb' +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +Rails/Presence: + Exclude: + - 'app/controllers/admin/enterprises_controller.rb' + - 'app/models/spree/product.rb' + +# Offense count: 6 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Severity. +Rails/RedirectBackOrTo: + Exclude: + - 'app/controllers/admin/order_cycles_controller.rb' + - 'app/controllers/locales_controller.rb' + - 'app/controllers/spree/admin/invoices_controller.rb' + - 'app/controllers/spree/admin/orders_controller.rb' + - 'app/controllers/spree/admin/return_authorizations_controller.rb' + # Offense count: 1 # Configuration parameters: TransactionMethods. Rails/TransactionExitStatement: