simplycop 1.12.24 → 1.13.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: b1e606f65e8473ad122d343ad2a2c233e81c3aaed4d666575fb245a0b2aa761b
4
- data.tar.gz: 2a6dcee6680252df61da89a9fa43d4bbe1ab77cfbf697ae8339c4e68d43b1a53
3
+ metadata.gz: 9ab7c9988b4b576be0973431393e2de7c497ae5c47de4a0ca067bd874e20785a
4
+ data.tar.gz: 7a3b15482380ed0c29fc8e6f24b896fbabbfe338d71b2cafd38c6f92750f20ff
5
5
  SHA512:
6
- metadata.gz: 5edbc9322e4f83c7888eb4db682169825d7f530988abb7e5623c829a743b783bedc28ac64f93c0b99c543629de5fd99e7d772feb88e41307abf6d62df4e786ad
7
- data.tar.gz: 70a6de5c7df05ce6fd4dc66b4191b7aaf5ceda55591d076326e2aacd6c109339d3a808fe2c464d91124d97af14b09cb1bddb0cc8a417e74877888e3afa51eb08
6
+ metadata.gz: 8d22fb0869ee60596a5550e9530512926af45b66a20b2e4cfade20665f0a3f8c74e2b42c8b665ce3f2c9f4fff2d731fca576e54ca30a940855bfb253b05e160c
7
+ data.tar.gz: 7c17392c00bd0e24de5f885d30bfd432d28842cd63135a4d28d613db65765e1b3a114965a2d63ff3858b8f2bea89570386bcf2a0ff748b0a3c2429c32e73f88f
@@ -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 rspec cops. you can include this by adding:
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
  ```
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.24'
10
+ VERSION = '1.13.1'
11
11
  end
data/simplycop.gemspec CHANGED
@@ -17,9 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'rubocop', '~> 1.42'
21
- spec.add_dependency 'rubocop-rails', '~> 2.17'
22
- spec.add_dependency 'rubocop-rspec', '~> 2.16'
20
+ spec.add_dependency 'rubocop', '1.55.1'
21
+ spec.add_dependency 'rubocop-performance', '1.18.0'
22
+ spec.add_dependency 'rubocop-rails', '2.20.2'
23
+ spec.add_dependency 'rubocop-rspec', '2.23.0'
23
24
  spec.add_development_dependency 'bundler', '>= 2.2.15'
24
25
  spec.add_development_dependency 'rake', '>= 12.3.3'
25
26
  spec.add_development_dependency 'rspec', '~> 3.10'
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.24
4
+ version: 1.13.1
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-12 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '1.42'
19
+ version: 1.55.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '1.42'
26
+ version: 1.55.1
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.18.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.18.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubocop-rails
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - '='
32
46
  - !ruby/object:Gem::Version
33
- version: '2.17'
47
+ version: 2.20.2
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - '='
39
53
  - !ruby/object:Gem::Version
40
- version: '2.17'
54
+ version: 2.20.2
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubocop-rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - '='
46
60
  - !ruby/object:Gem::Version
47
- version: '2.16'
61
+ version: 2.23.0
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - '='
53
67
  - !ruby/object:Gem::Version
54
- version: '2.16'
68
+ version: 2.23.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  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"