Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-11-30 10:34:29 +0300
committerRobert Speicher <rspeicher@gmail.com>2017-02-11 01:40:38 +0300
commit5db56efe424c9cd760580a755ec4e131d045769d (patch)
tree079042491d8a5a721658f0bed50c5e1f3534830f /.rubocop.yml
parent92cbc1e4ad8d874428089c4c65293fa218f67206 (diff)
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