Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 16:07:52 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 16:12:15 +0300
commitd6f669774481b160c2d963b56309ab6262216c42 (patch)
tree0dd11b283a493370cebd07bf1e6f4bb316a10ad3 /.rubocop.yml
parentb6d3eadfe23997770ca260460c0e22fed6859d45 (diff)
Enable Rubocop cops for invalid access modifiers
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: