Skip to content

Commit 3ec9e86

Browse files
committed
Merge pull request #1599 from will-in-wi/rubocop_redundant_self
Enable redundant self cop
2 parents 0c18f84 + 883105a commit 3ec9e86

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ Style/AndOr:
2323
Enabled: false
2424
Style/Documentation:
2525
Enabled: false
26-
Style/RedundantSelf:
27-
Enabled: false
2826
Style/RedundantReturn:
2927
Enabled: false
3028
Style/SpaceAfterComma:

lib/capistrano/configuration/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def select?(options)
3434
when :exclude
3535
!callable.call(self)
3636
else
37-
self.fetch(k) == v
37+
fetch(k) == v
3838
end
3939
return false unless result
4040
end

lib/capistrano/dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ def run_locally(&block)
5959
end
6060
end
6161
end
62-
self.extend Capistrano::DSL
62+
extend Capistrano::DSL

0 commit comments

Comments
 (0)