summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-23 13:21:02 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-05-23 13:21:02 -0400
commit2de1109da39a46200e741b5a6643ce7fb1418041 (patch)
treebc1f2d8ff501f081fa1269cacfc88ebaf170693d /.rubocop.yml
parentbc806831e818b6e1ec2d1ae81221126f03c01f11 (diff)
downloadgitlab-ce-2de1109da39a46200e741b5a6643ce7fb1418041.tar.gz
Enable Performance/StartWith cop and fix offensesrs-start-with
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 0946ef5d848..861dde41494 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