Ver Código Fonte

Remove unused argument

Maarten van den Berg 6 anos atrás
pai
commit
7eb073f6bf
2 arquivos alterados com 1 adições e 15 exclusões
  1. 0 14
      .rubocop.yml
  2. 1 1
      app/helpers/application_helper.rb

+ 0 - 14
.rubocop.yml

@@ -23,20 +23,6 @@ Lint/SafeNavigationChain:
23 23
   Exclude:
24 24
     - 'app/controllers/api_controller.rb'
25 25
 
26
-# Offense count: 2
27
-# Cop supports --auto-correct.
28
-# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
29
-Lint/UnusedBlockArgument:
30
-  Exclude:
31
-    - 'db/seeds.rb'
32
-
33
-# Offense count: 1
34
-# Cop supports --auto-correct.
35
-# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
36
-Lint/UnusedMethodArgument:
37
-  Exclude:
38
-    - 'app/helpers/application_helper.rb'
39
-
40 26
 # Offense count: 30
41 27
 Metrics/AbcSize:
42 28
   Max: 71

+ 1 - 1
app/helpers/application_helper.rb

@@ -1,5 +1,5 @@
1 1
 module ApplicationHelper
2
-  def flash_message(category, message, **pairs)
2
+  def flash_message(category, message)
3 3
     flash[:alerts] ||= {}
4 4
     flash[:alerts][category] ||= []
5 5
     flash[:alerts][category] << message