diff options
author | Robert Speicher <robert@gitlab.com> | 2016-06-05 19:08:56 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-06-05 19:08:56 +0000 |
commit | cc0ea13d21de6adb1ac361024ee88d383b267cc7 (patch) | |
tree | e2d6457e95231f6fd76d866d343659cb60c7eff5 /.rubocop.yml | |
parent | 90a3c947a712845770dc9fe2266b727092e717cb (diff) | |
parent | 080997d87edcafd7afd3c3aa01da441e87493fdd (diff) | |
download | gitlab-ce-cc0ea13d21de6adb1ac361024ee88d383b267cc7.tar.gz |
Merge branch 'rubocop/enable-ambiguous-operator-rubocop-lint' into 'master'
Enable Lint/AmbiguousOperator rubocop cop
Enforce using parentheses if ambiguous operators are detected, like `header *some_method` or `array.select &:even?`.
See #17478
See merge request !4454
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 3593ae29f24..eb51a04c0ec 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -771,7 +771,7 @@ Metrics/PerceivedComplexity: # Checks for ambiguous operators in the first argument of a method invocation # without parentheses. Lint/AmbiguousOperator: - Enabled: false + Enabled: true # Checks for ambiguous regexp literals in the first argument of a method # invocation without parentheses. |