summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-11-30 15:34:29 +0800
committerRobert Speicher <rspeicher@gmail.com>2017-02-10 17:40:38 -0500
commit5db56efe424c9cd760580a755ec4e131d045769d (patch)
tree079042491d8a5a721658f0bed50c5e1f3534830f /.rubocop.yml
parent92cbc1e4ad8d874428089c4c65293fa218f67206 (diff)
downloadgitlab-ce-5db56efe424c9cd760580a755ec4e131d045769d.tar.gz
Enable `Style/RedundantException` cop and correct offense
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 21ea8372e4b..1061de7c797 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -339,6 +339,10 @@ Style/OpMethod:
Style/ParenthesesAroundCondition:
Enabled: true
+# Checks for an obsolete RuntimeException argument in raise/fail.
+Style/RedundantException:
+ Enabled: true
+
# Checks for parentheses that seem not to serve any purpose.
Style/RedundantParentheses:
Enabled: true