Files
openfoodnetwork/spec
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-09-16 09:05:31 +09:00
2023-10-24 15:21:14 +11:00
2023-10-30 19:43:57 +01:00
2023-10-08 21:47:17 +02:00
2023-09-21 22:58:42 +09:00
2023-11-07 16:30:50 +09:00
2023-09-24 22:41:27 +09:00
2023-06-13 14:58:16 +01:00
2023-09-25 13:15:38 +09:00
2023-08-08 11:36:31 +01:00
2023-04-18 09:50:08 +10:00