Add and apply Lint/EmptyBlock rubocop rule

It was introduced in Rubocop 1.1.0.
This commit is contained in:
Javi Martín
2021-08-11 15:34:33 +02:00
parent adba81ea89
commit 9b61945ee4
5 changed files with 7 additions and 8 deletions

View File

@@ -163,6 +163,9 @@ Lint/ConstantDefinitionInBlock:
Lint/DuplicateMethods:
Enabled: true
Lint/EmptyBlock:
Enabled: true
Lint/EmptyFile:
Enabled: true

View File

@@ -91,8 +91,7 @@ FactoryBot.define do
end
end
factory :widget_feed, class: "Widget::Feed" do
end
factory :widget_feed, class: "Widget::Feed"
factory :i18n_content, class: "I18nContent" do
key { "debates.index.section_footer.description" }

View File

@@ -214,6 +214,5 @@ FactoryBot.define do
end
end
factory :active_poll do
end
factory :active_poll
end

View File

@@ -36,8 +36,7 @@ describe Poll do
expect(poll).not_to be_valid
end
it "no overlapping polls for proposal polls are allowed" do
end
pending "no overlapping polls for proposal polls are allowed"
end
describe "proposal polls specific validations" do

View File

@@ -316,8 +316,7 @@ describe "Emails" do
expect { open_last_email }.to raise_error "No email has been sent!"
end
xscenario "Delete all Notifications included in the digest after email sent" do
end
xscenario "Delete all Notifications included in the digest after email sent"
end
context "User invites" do