summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-05-30 17:56:15 +0000
committerRobert Speicher <robert@gitlab.com>2016-05-30 17:56:15 +0000
commitea329376302bac3bd49244ad043fa8adeb1d002e (patch)
treec3cf2d95c548135076bcc87616b82f8f2fe095ac /.rubocop.yml
parent7a6d069f419d796acafe8caa203385f510ca94ca (diff)
parent86cf9dd2535adac3d739edbb845f7388e42f447d (diff)
downloadgitlab-ce-ea329376302bac3bd49244ad043fa8adeb1d002e.tar.gz
Merge branch 'rubocop/enable-literal-in-condition-cop' into 'master'
Enable Lint/LiteralInCondition rubocop cop Detects literals used in conditions. See #17478 See merge request !4354
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 79f32eedee6..877f0c2d45a 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -877,7 +877,7 @@ Lint/InvalidCharacterLiteral:
# Checks of literals used in conditions.
Lint/LiteralInCondition:
- Enabled: false
+ Enabled: true
# Checks for literals used in interpolation.
Lint/LiteralInInterpolation: