Skip to content

Commit

Permalink
Rubocop: Unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jan 10, 2017
1 parent d4bbaaa commit 39b289b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .rubocop_todo.yml
Expand Up @@ -73,20 +73,6 @@ Lint/UnifiedInteger:
Exclude:
- 'lib/fat_free_crm/i18n.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'config/unicorn.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'spec/support/auth_macros.rb'

# Offense count: 4
# Configuration parameters: ContextCreatingMethods.
Lint/UselessAccessModifier:
Expand Down
4 changes: 2 additions & 2 deletions config/unicorn.rb
Expand Up @@ -12,7 +12,7 @@
timeout 15
preload_app true

before_fork do |server, worker|
before_fork do |_server, _worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
Expand All @@ -22,7 +22,7 @@
ActiveRecord::Base.connection.disconnect!
end

after_fork do |server, worker|
after_fork do |_server, _worker|
Signal.trap 'TERM' do
puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/support/auth_macros.rb
Expand Up @@ -32,7 +32,7 @@ def login_and_assign(user_stubs = {}, session_stubs = {})
assigns[:current_user] = current_user
end

def login_and_assign!(user_stubs = {}, session_stubs = {})
def login_and_assign!(_user_stubs = {}, _session_stubs = {})
login
assigns[:current_user] = current_user
end
Expand Down

0 comments on commit 39b289b

Please sign in to comment.