summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-10-03 16:09:57 +0200
committerRobert Speicher <rspeicher@gmail.com>2016-10-03 16:09:57 +0200
commit4a191c83d1db31aac16241dbf99ac45088efb99a (patch)
treec5035e58f55263a2d59a8b5cb606326056a13a58 /.rubocop.yml
parentdfb9cab828a11cf00522734d11c2472e8b540b5c (diff)
downloadgitlab-ce-4a191c83d1db31aac16241dbf99ac45088efb99a.tar.gz
Enable Lint/StringConversionInInterpolation cop and autocorrect offensesrs-string-conversion-in-interpolation
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 5bd31ccf329..c84755859cb 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -639,6 +639,10 @@ Lint/RescueException:
Lint/ShadowedException:
Enabled: false
+# Checks for Object#to_s usage in string interpolation.
+Lint/StringConversionInInterpolation:
+ Enabled: true
+
# Do not use prefix `_` for a variable that is used.
Lint/UnderscorePrefixedVariableName:
Enabled: true