Files
openfoodnetwork/app/models
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-12 23:19:05 +09:00
2023-09-26 10:56:44 +10:00
2012-03-27 10:10:26 +11:00
2023-09-12 23:19:05 +09:00
2023-09-12 23:19:05 +09:00
2023-09-12 23:19:05 +09:00
2023-09-12 23:19:05 +09:00
2023-09-12 23:19:05 +09:00
2023-06-23 09:08:04 +09:00
2023-09-13 16:45:00 +09:00