style: enabled Style/EmptyMethod rubocop

This commit is contained in:
Gonzalo Rodriguez 2019-03-01 21:09:46 -03:00
parent 04eeeb9a33
commit 7dbb490c01
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1
3 changed files with 15 additions and 24 deletions

View file

@ -41,6 +41,9 @@ Style/BlockDelimiters:
Style/BracesAroundHashParameters:
Enabled: true
Style/EmptyMethod:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true

View file

@ -22,11 +22,9 @@ describe "Cache store config when using allow2ban" do
raised_exception = nil
fake_store_class = Class.new do
def write(key, value)
end
def write(key, value); end
def increment(key, count, options = {})
end
def increment(key, count, options = {}); end
end
Object.stub_const(:FakeStore, fake_store_class) do
@ -44,11 +42,9 @@ describe "Cache store config when using allow2ban" do
raised_exception = nil
fake_store_class = Class.new do
def read(key)
end
def read(key); end
def increment(key, count, options = {})
end
def increment(key, count, options = {}); end
end
Object.stub_const(:FakeStore, fake_store_class) do
@ -66,11 +62,9 @@ describe "Cache store config when using allow2ban" do
raised_exception = nil
fake_store_class = Class.new do
def read(key)
end
def read(key); end
def write(key, value)
end
def write(key, value); end
end
Object.stub_const(:FakeStore, fake_store_class) do

View file

@ -22,11 +22,9 @@ describe "Cache store config when using fail2ban" do
raised_exception = nil
fake_store_class = Class.new do
def write(key, value)
end
def write(key, value); end
def increment(key, count, options = {})
end
def increment(key, count, options = {}); end
end
Object.stub_const(:FakeStore, fake_store_class) do
@ -44,11 +42,9 @@ describe "Cache store config when using fail2ban" do
raised_exception = nil
fake_store_class = Class.new do
def read(key)
end
def read(key); end
def increment(key, count, options = {})
end
def increment(key, count, options = {}); end
end
Object.stub_const(:FakeStore, fake_store_class) do
@ -66,11 +62,9 @@ describe "Cache store config when using fail2ban" do
raised_exception = nil
fake_store_class = Class.new do
def read(key)
end
def read(key); end
def write(key, value)
end
def write(key, value); end
end
Object.stub_const(:FakeStore, fake_store_class) do