File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ AllCops:
19
19
InternalAffairs/NodeMatcherDirective :
20
20
Enabled : false
21
21
22
- # FIXME: Workaround for a false positive caused by this cop when using `bundle exec rake`.
23
- InternalAffairs/UndefinedConfig :
24
- Enabled : false
25
-
26
22
Naming/InclusiveLanguage :
27
23
Enabled : true
28
24
CheckStrings : true
Original file line number Diff line number Diff line change @@ -98,8 +98,6 @@ def on_and(node)
98
98
end
99
99
100
100
def on_or ( node )
101
- return unless cop_config [ 'NilOrEmpty' ]
102
-
103
101
exists_and_not_empty? ( node ) do |var1 , var2 |
104
102
return unless var1 == var2
105
103
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ def allowed_method?(node)
100
100
end
101
101
102
102
def forbidden_methods
103
- obsolete_result = cop_config [ 'Blacklist' ]
103
+ # TODO: Remove when RuboCop Rails 3 releases.
104
+ obsolete_result = cop_config [ 'Blacklist' ] # rubocop:disable InternalAffairs/UndefinedConfig
104
105
if obsolete_result
105
106
warn '`Blacklist` has been renamed to `ForbiddenMethods`.' unless @displayed_forbidden_warning
106
107
@displayed_forbidden_warning = true
@@ -111,7 +112,8 @@ def forbidden_methods
111
112
end
112
113
113
114
def allowed_methods
114
- obsolete_result = cop_config [ 'Whitelist' ]
115
+ # TODO: Remove when RuboCop Rails 3 releases.
116
+ obsolete_result = cop_config [ 'Whitelist' ] # rubocop:disable InternalAffairs/UndefinedConfig
115
117
if obsolete_result
116
118
warn '`Whitelist` has been renamed to `AllowedMethods`.' unless @displayed_allowed_warning
117
119
@displayed_allowed_warning = true
You can’t perform that action at this time.
0 commit comments