summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-05-23 18:13:08 +0000
committerRobert Speicher <robert@gitlab.com>2016-05-23 18:13:08 +0000
commitd3fd58570c7116b4065eed49d744d1f66395f64d (patch)
tree646227b40fd82228d0623f9c7f0654282528e687 /.rubocop.yml
parente491056e95fadd499601a5e0decc0ab9455f0fb6 (diff)
parent2de1109da39a46200e741b5a6643ce7fb1418041 (diff)
downloadgitlab-ce-d3fd58570c7116b4065eed49d744d1f66395f64d.tar.gz
Merge branch 'rs-start-with' into 'master'
Enable Performance/StartWith cop and fix offenses Ref: https://gitlab.com/gitlab-org/gitlab-ce/issues/17478 See merge request !4256
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index d09e493ef38..832c31be162 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -985,11 +985,10 @@ Performance/RedundantMerge:
Performance/RedundantSortBy:
Enabled: false
-# TODO: Enable StartWith Cop.
# Use `start_with?` instead of a regex match anchored to the beginning of a
# string.
Performance/StartWith:
- Enabled: false
+ Enabled: true
# Use `tr` instead of `gsub` when you are replacing the same number of
# characters. Use `delete` instead of `gsub` when you are deleting