From aa124511def407c01ab3ef1098f60891f874bf8a Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 20 Jul 2023 14:03:31 +1000 Subject: [PATCH] Safely autocorrect Layout/FirstArgumentIndentation Inspecting 1478 files ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C........................................................................... Offenses: spec/system/admin/orders_spec.rb:485:11: C: [Corrected] Layout/FirstArgumentIndentation: Indent the first argument one step more than page.find(. "#listing_orders tbody tr td:first-child input[type=checkbox]") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/system/admin/orders_spec.rb:493:11: C: [Corrected] Layout/FirstArgumentIndentation: Indent the first argument one step more than page.find(. "#listing_orders tbody tr td:first-child input[type=checkbox]") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1478 files inspected, 2 offenses detected, 2 offenses corrected --- .rubocop_todo.yml | 8 -------- spec/system/admin/orders_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 67232cba0c..16b61e87e7 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -16,14 +16,6 @@ Gemspec/RequiredRubyVersion: - 'engines/order_management/order_management.gemspec' - 'engines/web/web.gemspec' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses -Layout/FirstArgumentIndentation: - Exclude: - - 'spec/system/admin/orders_spec.rb' - # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. diff --git a/spec/system/admin/orders_spec.rb b/spec/system/admin/orders_spec.rb index 763e453264..cf6f31cd29 100644 --- a/spec/system/admin/orders_spec.rb +++ b/spec/system/admin/orders_spec.rb @@ -482,7 +482,7 @@ describe ' # select all orders page.find("#listing_orders thead th:first-child input[type=checkbox]").click expect(page.find( - "#listing_orders tbody tr td:first-child input[type=checkbox]") + "#listing_orders tbody tr td:first-child input[type=checkbox]") ).to be_checked # enables print invoices button page.find("span.icon-reorder", text: "ACTIONS").click @@ -490,7 +490,7 @@ describe ' # unselect all orders page.find("#listing_orders thead th:first-child input[type=checkbox]").trigger("click") expect(page.find( - "#listing_orders tbody tr td:first-child input[type=checkbox]") + "#listing_orders tbody tr td:first-child input[type=checkbox]") ).to_not be_checked # disables print invoices button page.find("span.icon-reorder", text: "ACTIONS").click