summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-13 18:05:14 +0000
committerRémy Coutable <remy@rymai.me>2017-02-13 18:05:14 +0000
commit122ffd9fc799ab9a99cc555e4a82b68bcffabb0f (patch)
tree4f93eced7b6fd9b7af6114c6529205c88ebe72e4 /.rubocop.yml
parentda8577675843ea01e183bf07a635386e94514665 (diff)
parent17c8d15b14f6c3ecc98e1466e9148cf100cc12c6 (diff)
downloadgitlab-ce-122ffd9fc799ab9a99cc555e4a82b68bcffabb0f.tar.gz
Merge branch 'rs-rubocop-rspec' into 'master'
Enable Style/RedundantException, Lint/EmptyWhen, and RSpec/ExpectActual cops See merge request !9151
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index d30846e6e0b..b093d4d25d4 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
@@ -568,6 +572,10 @@ Lint/ElseLayout:
Lint/EmptyEnsure:
Enabled: true
+# Checks for the presence of `when` branches without a body.
+Lint/EmptyWhen:
+ Enabled: true
+
# Align ends correctly.
Lint/EndAlignment:
Enabled: true
@@ -769,6 +777,10 @@ Rails/ScopeArgs:
RSpec/AnyInstance:
Enabled: false
+# Check for expectations where `be(...)` can replace `eql(...)`.
+RSpec/BeEql:
+ Enabled: false
+
# Check that the first argument to the top level describe is the tested class or
# module.
RSpec/DescribeClass:
@@ -797,6 +809,10 @@ RSpec/ExampleWording:
not: does not
IgnoredWords: []
+# Checks for `expect(...)` calls containing literal values.
+RSpec/ExpectActual:
+ Enabled: true
+
# Checks the file and folder naming of the spec file.
RSpec/FilePath:
Enabled: false