sevenwire-rubocop 1.1.1 → 1.3.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: 41c269ee8d89c68fbdc4ebcbdffe3544e74d12cd7c7172d700ff336f7f599d98
4
- data.tar.gz: ec2d2a32233b7682f0e19f8287e2d2f9011fbafe1bc68000688cf8250081d56a
3
+ metadata.gz: c01bf8876cb195f5c595dc0004201cabad55b858d72d8c53127b906a56f1c533
4
+ data.tar.gz: 1755a1ae9ff789e58fef4f6ead940845adb439642874c186c686a891f833a3dc
5
5
  SHA512:
6
- metadata.gz: 8c70093c8a2b0461f2305a4307e5db76cd010a3c79a6360e3cd06a1877a2e65bc923318303eb3868464658c6ab955863eb73148f7ce2a05cc5e28882b39880e7
7
- data.tar.gz: 9959202ae96a33a9e8a1f5151c8786b81049b22aa59523f8d1f574a891ec7d814c7e280b4fa8c43876114e8c560d254e6d36df6dd87e49bc22ef7578cf9492bf
6
+ metadata.gz: c458bc7db3aa02457e107cee0c367b00f6960750c994a10800568abeede93a2a64d5ad51cdf52902c4adf6f1e766f4414e7c316a19537f325fd70e5d3cd1a7db
7
+ data.tar.gz: acf44ff7b1bc5419d7aeda133b0cae304e80f9786d035a85aefa2230b9e2f89beb8db6cb1acec6de7b540ab743745f914412ad3d1343dad4ccc8346323ea8bfe
@@ -1 +1 @@
1
- 2.6.0
1
+ 2.7.1
@@ -0,0 +1,23 @@
1
+ {
2
+ "cSpell.words": [
3
+ "Gemfile",
4
+ "Rubocop",
5
+ "Sevenwire",
6
+ "outdent",
7
+ "rspec"
8
+ ],
9
+ "workbench.colorCustomizations": {
10
+ "activityBar.activeBackground": "#d04649",
11
+ "activityBar.activeBorder": "#37cb34",
12
+ "activityBar.background": "#d04649",
13
+ "activityBar.foreground": "#e7e7e7",
14
+ "activityBar.inactiveForeground": "#e7e7e799",
15
+ "activityBarBadge.background": "#37cb34",
16
+ "activityBarBadge.foreground": "#15202b",
17
+ "statusBar.background": "#b52e31",
18
+ "statusBar.border": "#b52e31",
19
+ "statusBar.foreground": "#e7e7e7",
20
+ "statusBarItem.hoverBackground": "#d04649"
21
+ },
22
+ "peacock.color": "#b52e31"
23
+ }
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
@@ -1,41 +1,44 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sevenwire-rubocop (1.0.4)
5
- rubocop (~> 0.62.0)
6
- rubocop-rspec (~> 1.31.0)
4
+ sevenwire-rubocop (1.3.1)
5
+ rubocop (~> 0.82.0)
6
+ rubocop-performance (~> 1.5)
7
+ rubocop-rspec (~> 1.39.0)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
12
  ast (2.4.0)
12
- jaro_winkler (1.5.2)
13
- parallel (1.14.0)
14
- parser (2.6.0.0)
13
+ jaro_winkler (1.5.4)
14
+ parallel (1.19.1)
15
+ parser (2.7.1.2)
15
16
  ast (~> 2.4.0)
16
- powerpack (0.1.2)
17
17
  rainbow (3.0.0)
18
- rake (10.5.0)
19
- rubocop (0.62.0)
18
+ rake (12.3.2)
19
+ rexml (3.2.4)
20
+ rubocop (0.82.0)
20
21
  jaro_winkler (~> 1.5.1)
21
22
  parallel (~> 1.10)
22
- parser (>= 2.5, != 2.5.1.1)
23
- powerpack (~> 0.1)
23
+ parser (>= 2.7.0.1)
24
24
  rainbow (>= 2.2.2, < 4.0)
25
+ rexml
25
26
  ruby-progressbar (~> 1.7)
26
- unicode-display_width (~> 1.4.0)
27
- rubocop-rspec (1.31.0)
28
- rubocop (>= 0.60.0)
29
- ruby-progressbar (1.10.0)
30
- unicode-display_width (1.4.1)
27
+ unicode-display_width (>= 1.4.0, < 2.0)
28
+ rubocop-performance (1.5.2)
29
+ rubocop (>= 0.71.0)
30
+ rubocop-rspec (1.39.0)
31
+ rubocop (>= 0.68.1)
32
+ ruby-progressbar (1.10.1)
33
+ unicode-display_width (1.7.0)
31
34
 
32
35
  PLATFORMS
33
36
  ruby
34
37
 
35
38
  DEPENDENCIES
36
- bundler (~> 1.15)
37
- rake (~> 10.0)
39
+ bundler (~> 2.1)
40
+ rake (~> 12.3)
38
41
  sevenwire-rubocop!
39
42
 
40
43
  BUNDLED WITH
41
- 1.17.2
44
+ 2.1.4
@@ -1,9 +1,9 @@
1
1
  # Releasing
2
2
 
3
- 1. Update version.rb file accordingly.
4
- 1. Tag the release: `git tag vVERSION`
5
- 1. Push changes: `git push --tags`
6
- 1. Build and publish:
3
+ 1. Update version.rb file accordingly.
4
+ 2. Tag the release: `git tag vVERSION`
5
+ 3. Push changes: `git push --tags`
6
+ 4. Build and publish:
7
7
 
8
8
  ```bash
9
9
  bundle exec rake build
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require 'bundler/gem_tasks'
1
+ require "bundler/gem_tasks"
@@ -1,5 +1,8 @@
1
+ require:
2
+ - rubocop-performance
1
3
  inherit_from:
2
4
  - ./departments/layout.yml
5
+ - ./departments/lint.yml
3
6
  - ./departments/metrics.yml
4
7
  - ./departments/performance.yml
5
8
  - ./departments/rspec.yml
@@ -8,3 +8,17 @@ Layout/ClassStructure:
8
8
  Layout/EndAlignment:
9
9
  Enabled: true
10
10
  EnforcedStyleAlignWith: variable
11
+
12
+ Layout/FirstArrayElementIndentation:
13
+ Enabled: true
14
+ EnforcedStyle: consistent
15
+
16
+ Layout/FirstHashElementIndentation:
17
+ Enabled: true
18
+ EnforcedStyle: consistent
19
+
20
+ Layout/LineLength:
21
+ Max: 80
22
+
23
+ Layout/SpaceAroundMethodCallOperator:
24
+ Enabled: true
@@ -0,0 +1,5 @@
1
+ Lint/RaiseException:
2
+ Enabled: true
3
+
4
+ Lint/StructNewOverride:
5
+ Enabled: true
@@ -2,14 +2,11 @@ Metrics/AbcSize:
2
2
  Enabled: false
3
3
 
4
4
  Metrics/BlockLength:
5
- ExcludeMethods: ["describe", "context"]
5
+ ExcludedMethods: ["describe", "context"]
6
6
 
7
7
  Metrics/ClassLength:
8
8
  Max: 200
9
9
 
10
- Metrics/LineLength:
11
- Max: 100
12
-
13
10
  Metrics/MethodLength:
14
11
  Max: 20
15
12
 
@@ -1,5 +1,15 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
 
4
+ # Required for VSCode to auto-correct rspec files. It writes the file to /tmp/**/tmp.rb
5
+ # rubocop-rspec ignores that file because it doesn't match the file pattern by default.
6
+ # FIXME: This could be dangerous because we'll run this on all Ruby files, not just rspec.
7
+ AllCops:
8
+ RSpec:
9
+ Patterns:
10
+ - _spec.rb
11
+ - "(?:^|/)spec/"
12
+ - tmp.rb
13
+
4
14
  RSpec/NestedGroups:
5
15
  Max: 4
@@ -7,9 +7,21 @@ Style/ClassAndModuleChildren:
7
7
  Style/Documentation:
8
8
  Enabled: false
9
9
 
10
+ Style/ExponentialNotation:
11
+ Enabled: false
12
+
10
13
  Style/FrozenStringLiteralComment:
11
14
  Enabled: false
12
15
 
16
+ Style/HashEachMethods:
17
+ Enabled: false
18
+
19
+ Style/HashTransformKeys:
20
+ Enabled: false
21
+
22
+ Style/HashTransformValues:
23
+ Enabled: false
24
+
13
25
  Style/MethodCalledOnDoEndBlock:
14
26
  Enabled: true
15
27
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sevenwire
4
4
  module Rubocop
5
- VERSION = "1.1.1"
5
+ VERSION = "1.3.1"
6
6
  end
7
7
  end
@@ -22,8 +22,9 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
24
24
 
25
- spec.add_dependency "rubocop", "~> 0.62.0"
26
- spec.add_dependency "rubocop-rspec", "~> 1.31.0"
27
- spec.add_development_dependency "bundler", "~> 1.15"
28
- spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_dependency "rubocop", "~> 0.82.0"
26
+ spec.add_dependency "rubocop-performance", "~> 1.5"
27
+ spec.add_dependency "rubocop-rspec", "~> 1.39.0"
28
+ spec.add_development_dependency "bundler", "~> 2.1"
29
+ spec.add_development_dependency "rake", "~> 12.3"
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sevenwire-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Arbini
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-03-06 00:00:00.000000000 Z
12
+ date: 2020-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,56 +17,70 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.62.0
20
+ version: 0.82.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.62.0
27
+ version: 0.82.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: rubocop-performance
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.5'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.5'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: rubocop-rspec
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
46
  - - "~>"
33
47
  - !ruby/object:Gem::Version
34
- version: 1.31.0
48
+ version: 1.39.0
35
49
  type: :runtime
36
50
  prerelease: false
37
51
  version_requirements: !ruby/object:Gem::Requirement
38
52
  requirements:
39
53
  - - "~>"
40
54
  - !ruby/object:Gem::Version
41
- version: 1.31.0
55
+ version: 1.39.0
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: bundler
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
60
  - - "~>"
47
61
  - !ruby/object:Gem::Version
48
- version: '1.15'
62
+ version: '2.1'
49
63
  type: :development
50
64
  prerelease: false
51
65
  version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
67
  - - "~>"
54
68
  - !ruby/object:Gem::Version
55
- version: '1.15'
69
+ version: '2.1'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: rake
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
74
  - - "~>"
61
75
  - !ruby/object:Gem::Version
62
- version: '10.0'
76
+ version: '12.3'
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
81
  - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: '10.0'
83
+ version: '12.3'
70
84
  description:
71
85
  email:
72
86
  - b@sevenwire.com
@@ -78,6 +92,7 @@ files:
78
92
  - ".gitignore"
79
93
  - ".rubocop.yml"
80
94
  - ".ruby-version"
95
+ - ".vscode/settings.json"
81
96
  - Gemfile
82
97
  - Gemfile.lock
83
98
  - LICENSE
@@ -86,6 +101,7 @@ files:
86
101
  - Rakefile
87
102
  - default.yml
88
103
  - departments/layout.yml
104
+ - departments/lint.yml
89
105
  - departments/metrics.yml
90
106
  - departments/performance.yml
91
107
  - departments/rspec.yml
@@ -112,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
128
  - !ruby/object:Gem::Version
113
129
  version: '0'
114
130
  requirements: []
115
- rubygems_version: 3.0.1
131
+ rubygems_version: 3.1.2
116
132
  signing_key:
117
133
  specification_version: 4
118
134
  summary: Shared Rubocop config.