From 948b287fd6bf1a7bd8289fbb47391c882163d8fe Mon Sep 17 00:00:00 2001 From: Neal Chambers Date: Fri, 21 Jul 2023 22:44:34 +0900 Subject: [PATCH] Safely autocorrect Layout/LeadingCommentSpace Inspecting 1478 files ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C......................................................................................... Offenses: spec/system/admin/enterprises_spec.rb:204:5: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. #using "find" as fields outside of the screen and are not visible ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1478 files inspected, 1 offense detected, 1 offense corrected --- .rubocop_todo.yml | 7 ------- spec/system/admin/enterprises_spec.rb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ec19737c81..d6bae6504a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,13 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. -Layout/LeadingCommentSpace: - Exclude: - - 'spec/system/admin/enterprises_spec.rb' - # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. diff --git a/spec/system/admin/enterprises_spec.rb b/spec/system/admin/enterprises_spec.rb index f88a200f29..4ea82073e3 100644 --- a/spec/system/admin/enterprises_spec.rb +++ b/spec/system/admin/enterprises_spec.rb @@ -201,7 +201,7 @@ describe ' shop_message_input.native.send_keys('This is my shopfront message.') expect(page) .to have_checked_field "enterprise_preferred_shopfront_order_cycle_order_orders_close_at" - #using "find" as fields outside of the screen and are not visible + # using "find" as fields outside of the screen and are not visible find(:xpath, '//*[@id="enterprise_preferred_shopfront_order_cycle_order_orders_open_at"]') .trigger("click") find(:xpath, '//*[@id="enterprise_enable_subscriptions_true"]').trigger("click")