Permalink
Browse files

RUBOCOP RedundantReturn

  • Loading branch information...
1 parent af0cac4 commit 78fcbf8d8d9e4951b8b37df7f9376a8bd8e07ca7 @mroth committed Mar 23, 2014
Showing with 8 additions and 8 deletions.
  1. +1 −1 lib/lolcommits/configuration.rb
  2. +1 −1 lib/lolcommits/plugins/lol_twitter.rb
  3. +6 −6 rubocop-todo.yml
@@ -216,7 +216,7 @@ def self.command_which(cmd)
return exe if File.executable? exe
end
end
- return nil
+ nil
end
end
end
@@ -55,7 +55,7 @@ def configure_options!
return # return nil if configure_auth failed
end
end
- return options
+ options
end
def configure_auth!
View
@@ -44,12 +44,6 @@ Proc:
RedundantBegin:
Enabled: false
-# Offence count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: AllowMultipleReturnValues.
-RedundantReturn:
- Enabled: false
-
# Offence count: 67
# Cop supports --auto-correct.
# NOTE: I want to understand this one better before auto it -mroth
@@ -96,6 +90,12 @@ RegexpLiteral:
CyclomaticComplexity:
Max: 10
+# Offence count: 2
+# Cop supports --auto-correct.
+# Configuration parameters: AllowMultipleReturnValues.
+# RedundantReturn:
+# Enabled: true
+
# Offence count: 1
# AccessorMethodName:
# Enabled: true

0 comments on commit 78fcbf8

Please sign in to comment.