~cytrogen/masto-fe

1a021011009607283cc8e602a8d0ebe3ecd73d92 — Nick Schonning 3 years ago 3680e03
Autofix Rubocop Style/EmptyLambdaParameter (#23705)

2 files changed, 3 insertions(+), 9 deletions(-)

M .rubocop_todo.yml
M spec/config/initializers/rack_attack_spec.rb
M .rubocop_todo.yml => .rubocop_todo.yml +0 -6
@@ 2710,12 2710,6 @@ Style/Documentation:

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/EmptyLambdaParameter:
  Exclude:
    - 'spec/config/initializers/rack_attack_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:

M spec/config/initializers/rack_attack_spec.rb => spec/config/initializers/rack_attack_spec.rb +3 -3
@@ 32,7 32,7 @@ describe Rack::Attack do
  describe 'throttle excessive sign-up requests by IP address' do
    context 'through the website' do
      let(:limit) { 25 }
      let(:request) { ->() { post path, {}, 'REMOTE_ADDR' => remote_ip } }
      let(:request) { -> { post path, {}, 'REMOTE_ADDR' => remote_ip } }

      context 'for exact path' do
        let(:path) { '/auth' }


@@ 49,7 49,7 @@ describe Rack::Attack do

    context 'through the API' do
      let(:limit) { 5 }
      let(:request) { ->() { post path, {}, 'REMOTE_ADDR' => remote_ip } }
      let(:request) { -> { post path, {}, 'REMOTE_ADDR' => remote_ip } }

      context 'for exact path' do
        let(:path) { '/api/v1/accounts' }


@@ 70,7 70,7 @@ describe Rack::Attack do

  describe 'throttle excessive sign-in requests by IP address' do
    let(:limit) { 25 }
    let(:request) { ->() { post path, {}, 'REMOTE_ADDR' => remote_ip } }
    let(:request) { -> { post path, {}, 'REMOTE_ADDR' => remote_ip } }

    context 'for exact path' do
      let(:path) { '/auth/sign_in' }