Files
openfoodnetwork/app/models/spree
Neal Chambers 85fef7ac4b Safely autocorrect Style/RedundantRegexpArgument
Inspecting 1513 files
...........................................................................................................................................................................................................................................................................................................................................................C....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Offenses:

app/models/spree/shipping_method.rb:69:25: C: [Corrected] Style/RedundantRegexpArgument: Use string ":tracking" as argument instead of regexp /:tracking/.
      tracking_url.gsub(/:tracking/, tracking) unless tracking.blank? || tracking_url.blank?
                        ^^^^^^^^^^^
lib/spree/i18n.rb:36:17: C: [Corrected] Style/RedundantRegexpArgument: Use string "spree" as argument instead of regexp /spree/.
      path.gsub(/spree/, '')
                ^^^^^^^

1513 files inspected, 2 offenses detected, 2 offenses corrected
2023-11-17 08:59:27 +09:00
..
2023-11-07 11:19:23 +09:00
2023-09-13 16:45:00 +09:00
2023-08-08 11:36:31 +01:00
2023-07-31 17:21:49 +01:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2021-12-10 18:18:20 +00:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2023-08-20 12:33:43 +09:00