mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
style: enabled Style/EmptyMethod rubocop
This commit is contained in:
parent
04eeeb9a33
commit
7dbb490c01
3 changed files with 15 additions and 24 deletions
|
|
@ -41,6 +41,9 @@ Style/BlockDelimiters:
|
|||
Style/BracesAroundHashParameters:
|
||||
Enabled: true
|
||||
|
||||
Style/EmptyMethod:
|
||||
Enabled: true
|
||||
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: true
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue