simplycop 1.12.24 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplycop_performance.yml +62 -0
- data/docs/index.md +2 -1
- data/lib/simplycop/version.rb +1 -1
- data/simplycop.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae29a50f1ec1a006769ef247d908f9517b9c7e94f1d19ff0667b4533a2bf9b8
|
4
|
+
data.tar.gz: 2f2beda956c1d3a780b67999a4befd42f03f7adb58f12b7b899ef735e650882c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9e27c39b2d9b260fe973e85dfc683a2fd8ecf892dc741ded7c08e295114bbc7b95e9175a0fa478879a5f2781b06ad3fe281bde679c5b67e2e1ac897b60c3c8
|
7
|
+
data.tar.gz: dcf83bc15f5a8db3180df118b58f125a5e6529f3845d3f3f285fb0adc4bbaff68f0ce02a7166e2ed6c3309b5249f085b18f44f585a3b5f26761ba1fea9ca7a95
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-performance
|
3
|
+
|
4
|
+
Performance/AncestorsInclude:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Performance/BigDecimalWithNumericArgument:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
Performance/BlockGivenWithExplicitBlock:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
Performance/Casecmp:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Performance/CollectionLiteralInLoop:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Performance/ConcurrentMonotonicTime:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Performance/ConstantRegexp:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Performance/MapCompact: # Filter_map removes [false]
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Performance/MethodObjectAsBlock:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Performance/RedundantBlockCall: # Causes conflicting warnings with normal rubocop enabled
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Performance/RedundantEqualityComparisonBlock:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Performance/RedundantSortBlock:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
Performance/RedundantSplitRegexpArgument:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
Performance/RedundantStringChars:
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
Performance/ReverseFirst:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
Performance/SortReverse:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Performance/Squeeze:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
Performance/StringIdentifierArgument:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
Performance/StringInclude:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
Performance/Sum:
|
62
|
+
Enabled: true
|
data/docs/index.md
CHANGED
@@ -26,12 +26,13 @@ AllCops:
|
|
26
26
|
- 'vendor/**/*'
|
27
27
|
```
|
28
28
|
|
29
|
-
* If you are implementing this in rails project and have rspec , you probably want the standard rails and
|
29
|
+
* If you are implementing this in rails project and have rspec , you probably want the standard rails, rspec, and performance cops. you can include this by adding:
|
30
30
|
|
31
31
|
```yaml
|
32
32
|
inherit_gem:
|
33
33
|
simplycop:
|
34
34
|
- .simplycop.yml
|
35
|
+
- .simplycop_performance.yml
|
35
36
|
- .simplycop_rails.yml
|
36
37
|
- .simplycop_rspec.yml
|
37
38
|
```
|
data/lib/simplycop/version.rb
CHANGED
data/simplycop.gemspec
CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
20
|
spec.add_dependency 'rubocop', '~> 1.42'
|
21
|
+
spec.add_dependency 'rubocop-performance', '~> 1.15'
|
21
22
|
spec.add_dependency 'rubocop-rails', '~> 2.17'
|
22
23
|
spec.add_dependency 'rubocop-rspec', '~> 2.16'
|
23
24
|
spec.add_development_dependency 'bundler', '>= 2.2.15'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.42'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.15'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.15'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-rails
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,6 +131,7 @@ files:
|
|
117
131
|
- ".ruby-version"
|
118
132
|
- ".simplycop.yml"
|
119
133
|
- ".simplycop_metaprogramming.yml"
|
134
|
+
- ".simplycop_performance.yml"
|
120
135
|
- ".simplycop_rails.yml"
|
121
136
|
- ".simplycop_rspec.yml"
|
122
137
|
- ".simplycop_security.yml"
|