Files
openfoodnetwork/app/models/spree
Neal Chambers 69e7419a45 Safely autocorrect Style/NegatedIfElseCondition
Inspecting 1509 files
....................................................................................................................................................................................................................C........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C.......................................................................................................................................................

Offenses:

app/mailers/spree/shipment_mailer.rb:15:25: C: [Corrected] Style/NegatedIfElseCondition: Invert the negated condition and swap the ternary branches.
      default_subject = !@delivery ? t('.picked_up_subject') : default_i18n_subject
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/support/matchers/table_matchers.rb:34:5: C: [Corrected] Style/NegatedIfElseCondition: Invert the negated condition and swap the if-else branches.
    if rows.count != expected_table.count ...
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1509 files inspected, 2 offenses detected, 2 offenses corrected
2023-11-10 09:13:57 +09:00
..
2023-11-07 11:19:23 +09:00
2023-09-13 16:45:00 +09:00
2020-08-07 13:45:25 +01: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