summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 15:07:52 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 15:12:15 +0200
commitd6f669774481b160c2d963b56309ab6262216c42 (patch)
tree0dd11b283a493370cebd07bf1e6f4bb316a10ad3 /.rubocop.yml
parentb6d3eadfe23997770ca260460c0e22fed6859d45 (diff)
downloadgitlab-ce-d6f669774481b160c2d963b56309ab6262216c42.tar.gz
Enable Rubocop cops for invalid access modifiersrubocop/enable-access-modifiers-cops
This enables following cops: Check for useless access modifiers Lint/UselessAccessModifier Checks for attempts to use `private` or `protected` to set the visibility of a class method, which does not work. Lint/IneffectiveAccessModifier This also disables two false possitives in concerns.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index db0bcfadcf4..3f3a0561710 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -506,6 +506,15 @@ Metrics/PerceivedComplexity:
#################### Lint ################################
+# Checks for useless access modifiers.
+Lint/UselessAccessModifier:
+ Enabled: true
+
+# Checks for attempts to use `private` or `protected` to set the visibility
+# of a class method, which does not work.
+Lint/IneffectiveAccessModifier:
+ Enabled: false
+
# Checks for ambiguous operators in the first argument of a method invocation
# without parentheses.
Lint/AmbiguousOperator: