Safely autocorrect Layout/EmptyLinesAroundBlockBody

Inspecting 1540 files
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C.............................................................................................................................................................................................................................................................................................................................................................C............................................................................

Offenses:

spec/lib/stripe/payment_intent_validator_spec.rb:7:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.
spec/system/admin/products_v3/products_spec.rb:219:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end.

1540 files inspected, 2 offenses detected, 2 offenses corrected
This commit is contained in:
David Cook
2024-02-23 10:02:23 +11:00
parent 5a7258c58e
commit 68cc9ed2fe
3 changed files with 0 additions and 11 deletions

View File

@@ -6,15 +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: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'spec/lib/stripe/payment_intent_validator_spec.rb'
- 'spec/system/admin/products_v3/products_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.

View File

@@ -4,7 +4,6 @@ require 'spec_helper'
require 'stripe/payment_intent_validator'
describe Stripe::PaymentIntentValidator do
let(:payment_method) {
create(:stripe_sca_payment_method, distributor_ids: [create(:distributor_enterprise).id],
preferred_enterprise_id: create(:enterprise).id)

View File

@@ -216,7 +216,6 @@ describe 'As an admin, I can manage products', feature: :admin_style_v3 do
expect(page).to have_field "Price", with: "10.25"
expect(page).to have_css "button[aria-label='On Hand']", text: "6"
end
end
it "switches stock to on-demand" do