rubocop-performance 1.17.0 → 1.17.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec17923dd3d4e2f5428145e038da7e2f3f71da16fcd474b3a64f052ddf252215
|
4
|
+
data.tar.gz: fff0473253906265a38c16a534049edb9673911a6947d3e30226b87bc20160e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e259f4d06ff1fadaf0fb923d5324fbda387a693b146cfcbac2bd5c80b84a2086cfd4b692623e120f63bc912854ac49b360835e86d05510d2e9d01880c6c67d49
|
7
|
+
data.tar.gz: 4c8fc04f79ee8da81cb4ba3934ef66a080c8ab9186f5a228101ae2ed7a4212a0c616157801553582b9c9c1073a60cdb63621d1de233c9c34c1f2389d60aaf212
|
data/config/default.yml
CHANGED
@@ -226,7 +226,7 @@ Performance/RedundantEqualityComparisonBlock:
|
|
226
226
|
Reference: 'https://github.com/rails/rails/pull/41363'
|
227
227
|
Enabled: pending
|
228
228
|
Safe: false
|
229
|
-
AllowRegexpMatch:
|
229
|
+
AllowRegexpMatch: true
|
230
230
|
VersionAdded: '1.10'
|
231
231
|
|
232
232
|
Performance/RedundantMatch:
|
@@ -10,7 +10,7 @@ module RuboCop
|
|
10
10
|
# behavior is appropriately overridden in subclass. For example,
|
11
11
|
# `Range#===` returns `true` when argument is within the range.
|
12
12
|
#
|
13
|
-
# This cop has `AllowRegexpMatch` option and it is
|
13
|
+
# This cop has `AllowRegexpMatch` option and it is true by default because
|
14
14
|
# `regexp.match?('string')` often used in block changes to the opposite result:
|
15
15
|
#
|
16
16
|
# [source,ruby]
|