ws-style 6.0.2 → 6.2.0

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: ce620b6b24d00dace1fc64e0dd663ddffc76e4658c8779f70e105ced0ce70739
4
- data.tar.gz: 332ff79e43e97640c0f8b79e5e7010a6c6eba50fe807437050a90b77cfefc4ba
3
+ metadata.gz: 04c36fcc000cf48774650d6edbf34c51959aa7d7f50cfe1e87892a4f88d49e94
4
+ data.tar.gz: 6e85312d35bafe7122ec4223791b1f5338fcd87b9f89d0285b039f465a0212ba
5
5
  SHA512:
6
- metadata.gz: e16cf6b3de9ae4a31f21e0a8b187da918d2f873f3326d27e9a193681988e0d403caf103b95eec1381d22a3e457621b378cfebe1fb221314da7c52f310c9ca7fe
7
- data.tar.gz: 7e8164cf1703a08a7a63b6f4c1facac9ceecaf61f4685d20c7c1c2156d3c39f8c586eea389bf914c0af26b41039913af2607bad8bc29b89e73251988a3cd7d62
6
+ metadata.gz: 8b84cc475ff90a16efab3f4a2f4829e1e8e3137d245675f6e8d88e1f16bd15876afcab7bff4fdfbb3a97090ae6a7be4abb6509d814c242d2c488db99c9c69e16
7
+ data.tar.gz: c8c2be2e97a14b0196ad7a73e8c4f0cd287a1c3202dde0a06771a4c91f79354ca889a85bac26a26bb73c9be9ba165bf56910116d342fa2b443fb618cf0654933
@@ -3,7 +3,7 @@ version: 2
3
3
  defaults: &defaults
4
4
  working_directory: ~/wealthsimple
5
5
  docker:
6
- - image: circleci/ruby:2.5.3
6
+ - image: circleci/ruby:2.5.7
7
7
 
8
8
  references:
9
9
  attach_code_workspace: &attach_code_workspace
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.5.7
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 6.2.0 - 2020-09-04
8
+ - Disable Cops enabled in 6.1.0 until we can confirm we want them
9
+
10
+ ## 6.1.1 - 2020-09-04
11
+ - Disable RSpec/MultipleMemoizedHelpers cop
12
+
13
+ ## 6.1.0 - 2020-08-27
14
+ - Upgraded rubocop to 0.89
15
+ - Upgraded rubocop-performance to 1.7
16
+ - Upgraded rubocop-rails to 2.7
17
+ - Split out Rails cops into their own configuration to improve installation for non-Rails projects
18
+
19
+ ## 6.0.4 - 2020-07-06
20
+ ### Changed
21
+ - Upgraded rubocop to >= 0.86 and opted into the new cops.
22
+
7
23
  ## 6.0.1 - 2020-05-06
8
24
  ### Changed
9
25
  - Don't enforce Style/FormatStringToken. We use template style strings heavily, and don't feel that annotated strings are a necessary improvement.
data/README.md CHANGED
@@ -59,6 +59,14 @@ Style/HashSyntax:
59
59
  EnforcedStyle: hash_rockets
60
60
  ```
61
61
 
62
+ If you're using `ws-style` in a non-Rails project, inherit from the core configuration file instead:
63
+
64
+ ```yaml
65
+ inherit_gem:
66
+ ws-style:
67
+ - core.yml
68
+ ```
69
+
62
70
  ## Development
63
71
 
64
72
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,220 @@
1
+ # See documentation for details on definitions:
2
+ # https://rubocop.readthedocs.io
3
+
4
+ require:
5
+ - rubocop-performance
6
+ - rubocop-rspec
7
+ - rubocop-vendor
8
+
9
+ inherit_mode:
10
+ merge:
11
+ - AllowedNames
12
+ - Exclude
13
+
14
+ AllCops:
15
+ Exclude:
16
+ - "bin/**/*"
17
+ - "data/**/*"
18
+ - "db/data/**/*"
19
+ - "db/migrate/**/*"
20
+ - "db/schema.rb"
21
+ - "gemfiles/**/*"
22
+ - "lib/tasks/circle_0.rake"
23
+ - "log/**/*"
24
+ - "node_modules/**/*"
25
+ - "public/**/*"
26
+ - "tmp/**/*"
27
+ - "vendor/**/*"
28
+
29
+ Layout/HashAlignment:
30
+ EnforcedLastArgumentHashStyle: ignore_implicit
31
+
32
+ Layout/ParameterAlignment:
33
+ Enabled: false
34
+
35
+ Layout/ArgumentAlignment:
36
+ Enabled: false
37
+
38
+ Lint/AmbiguousBlockAssociation:
39
+ Exclude:
40
+ - "spec/**/*"
41
+
42
+ Layout/DotPosition:
43
+ EnforcedStyle: trailing
44
+
45
+ Layout/CaseIndentation:
46
+ Enabled: false
47
+
48
+ Layout/ElseAlignment:
49
+ Enabled: false
50
+
51
+ Layout/EndAlignment:
52
+ Enabled: false
53
+
54
+ Layout/FirstArrayElementIndentation:
55
+ EnforcedStyle: consistent
56
+
57
+ Layout/IndentationWidth:
58
+ Enabled: true
59
+ Width: 2
60
+
61
+ Layout/LineLength:
62
+ IgnoredPatterns: ['(\A|\s)#']
63
+ Max: 100
64
+
65
+ Layout/FirstHashElementIndentation:
66
+ EnforcedStyle: consistent
67
+
68
+ Layout/MultilineMethodCallIndentation:
69
+ EnforcedStyle: indented
70
+
71
+ Metrics/AbcSize:
72
+ Max: 18
73
+
74
+ Metrics/BlockLength:
75
+ Enabled: false
76
+
77
+ Metrics/ClassLength:
78
+ Max: 150
79
+
80
+ Metrics/CyclomaticComplexity:
81
+ Max: 7
82
+
83
+ Metrics/MethodLength:
84
+ ExcludedMethods: ["extended"]
85
+ Max: 15
86
+
87
+ Metrics/ModuleLength:
88
+ Exclude:
89
+ - "spec/**/*"
90
+
91
+ Metrics/ParameterLists:
92
+ Enabled: false
93
+
94
+ Metrics/PerceivedComplexity:
95
+ Max: 8
96
+
97
+ Style/AndOr:
98
+ EnforcedStyle: conditionals
99
+
100
+ Style/BlockDelimiters:
101
+ Enabled: false
102
+
103
+ Style/ClassAndModuleChildren:
104
+ Enabled: false
105
+
106
+ Style/Documentation:
107
+ Enabled: false
108
+
109
+ Style/FormatStringToken:
110
+ Enabled: false
111
+
112
+ Style/FrozenStringLiteralComment:
113
+ Enabled: false
114
+
115
+ Style/NumericPredicate:
116
+ Enabled: false
117
+
118
+ Style/StringLiterals:
119
+ Enabled: false
120
+
121
+ Style/SymbolArray:
122
+ Enabled: false
123
+
124
+ Style/TrailingCommaInArguments:
125
+ EnforcedStyleForMultiline: comma
126
+
127
+ Style/TrailingCommaInArrayLiteral:
128
+ EnforcedStyleForMultiline: comma
129
+
130
+ Style/TrailingCommaInHashLiteral:
131
+ EnforcedStyleForMultiline: comma
132
+
133
+ Style/WordArray:
134
+ Enabled: false
135
+
136
+ Style/NegatedIf:
137
+ Enabled: false
138
+
139
+ RSpec/AnyInstance:
140
+ Enabled: false
141
+
142
+ RSpec/ContextWording:
143
+ Enabled: false
144
+
145
+ RSpec/EmptyExampleGroup:
146
+ Enabled: false
147
+
148
+ RSpec/ExampleLength:
149
+ Max: 15
150
+
151
+ RSpec/LetSetup:
152
+ Enabled: false
153
+
154
+ RSpec/MessageChain:
155
+ Enabled: false
156
+
157
+ RSpec/MultipleExpectations:
158
+ Enabled: false
159
+
160
+ RSpec/MultipleMemoizedHelpers:
161
+ Enabled: false
162
+
163
+ RSpec/NamedSubject:
164
+ Enabled: false
165
+
166
+ RSpec/NestedGroups:
167
+ Max: 6
168
+
169
+ # Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
170
+ # For more information: https://docs.rubocop.org/en/latest/versioning/
171
+
172
+ # 0.80
173
+ Style/HashEachMethods:
174
+ Enabled: true
175
+
176
+ Style/HashTransformKeys:
177
+ Enabled: true
178
+
179
+ Style/HashTransformValues:
180
+ Enabled: true
181
+
182
+ # 0.81
183
+ Lint/RaiseException:
184
+ Enabled: true
185
+
186
+ Lint/StructNewOverride:
187
+ Enabled: true
188
+
189
+ # 0.82
190
+ Layout/SpaceAroundMethodCallOperator:
191
+ Enabled: true
192
+
193
+ Style/ExponentialNotation:
194
+ Enabled: true
195
+
196
+ # 0.83
197
+ Layout/EmptyLinesAroundAttributeAccessor:
198
+ Enabled: True
199
+
200
+ Style/SlicingWithRange:
201
+ Enabled: True
202
+
203
+ # 0.84
204
+ Lint/DeprecatedOpenSSLConstant:
205
+ Enabled: True
206
+
207
+ # 0.85
208
+ Lint/MixedRegexpCaptureTypes:
209
+ Enabled: True
210
+
211
+ Style/RedundantRegexpCharacterClass:
212
+ Enabled: True
213
+
214
+ Style/RedundantRegexpEscape:
215
+ Enabled: True
216
+
217
+ # 0.86
218
+ Style/RedundantFetchBlock:
219
+ Enabled: True
220
+
@@ -1,203 +1,3 @@
1
- # See documentation for details on definitions:
2
- # https://rubocop.readthedocs.io
3
-
4
- require:
5
- - rubocop-performance
6
- - rubocop-rails
7
- - rubocop-rspec
8
- - rubocop-vendor
9
-
10
- inherit_mode:
11
- merge:
12
- - AllowedNames
13
- - Exclude
14
-
15
- AllCops:
16
- Exclude:
17
- - "bin/**/*"
18
- - "data/**/*"
19
- - "db/migrate/**/*"
20
- - "db/schema.rb"
21
- - "gemfiles/**/*"
22
- - "lib/tasks/circle_0.rake"
23
- - "log/**/*"
24
- - "node_modules/**/*"
25
- - "public/**/*"
26
- - "tmp/**/*"
27
- - "vendor/**/*"
28
-
29
- Layout/HashAlignment:
30
- EnforcedLastArgumentHashStyle: ignore_implicit
31
-
32
- Layout/ParameterAlignment:
33
- Enabled: false
34
-
35
- Layout/ArgumentAlignment:
36
- Enabled: false
37
-
38
- Lint/AmbiguousBlockAssociation:
39
- Exclude:
40
- - "spec/**/*"
41
-
42
- Layout/DotPosition:
43
- EnforcedStyle: trailing
44
-
45
- Layout/CaseIndentation:
46
- Enabled: false
47
-
48
- Layout/ElseAlignment:
49
- Enabled: false
50
-
51
- Layout/EndAlignment:
52
- Enabled: false
53
-
54
- Layout/FirstArrayElementIndentation:
55
- EnforcedStyle: consistent
56
-
57
- Layout/IndentationWidth:
58
- Enabled: true
59
- Width: 2
60
-
61
- Layout/LineLength:
62
- IgnoredPatterns: ['(\A|\s)#']
63
- Max: 100
64
-
65
- Layout/FirstHashElementIndentation:
66
- EnforcedStyle: consistent
67
-
68
- Layout/MultilineMethodCallIndentation:
69
- EnforcedStyle: indented
70
-
71
- Metrics/AbcSize:
72
- Max: 18
73
-
74
- Metrics/BlockLength:
75
- Enabled: false
76
-
77
- Metrics/ClassLength:
78
- Max: 150
79
-
80
- Metrics/CyclomaticComplexity:
81
- Max: 7
82
-
83
- Metrics/MethodLength:
84
- ExcludedMethods: ["extended"]
85
- Max: 15
86
-
87
- Metrics/ModuleLength:
88
- Exclude:
89
- - "spec/**/*"
90
-
91
- Metrics/ParameterLists:
92
- Enabled: false
93
-
94
- Metrics/PerceivedComplexity:
95
- Max: 8
96
-
97
- Style/AndOr:
98
- EnforcedStyle: conditionals
99
-
100
- Style/BlockDelimiters:
101
- Enabled: false
102
-
103
- Style/ClassAndModuleChildren:
104
- Enabled: false
105
-
106
- Style/Documentation:
107
- Enabled: false
108
-
109
- Style/FormatStringToken:
110
- Enabled: false
111
-
112
- Style/FrozenStringLiteralComment:
113
- Enabled: false
114
-
115
- Style/NumericPredicate:
116
- Enabled: false
117
-
118
- Style/StringLiterals:
119
- Enabled: false
120
-
121
- Style/SymbolArray:
122
- Enabled: false
123
-
124
- Style/TrailingCommaInArguments:
125
- EnforcedStyleForMultiline: comma
126
-
127
- Style/TrailingCommaInArrayLiteral:
128
- EnforcedStyleForMultiline: comma
129
-
130
- Style/TrailingCommaInHashLiteral:
131
- EnforcedStyleForMultiline: comma
132
-
133
- Style/WordArray:
134
- Enabled: false
135
-
136
- Style/NegatedIf:
137
- Enabled: false
138
-
139
- Rails:
140
- Enabled: true
141
-
142
- Rails/Delegate:
143
- Enabled: false
144
-
145
- Rails/FilePath:
146
- EnforcedStyle: arguments
147
-
148
- Rails/TimeZone:
149
- Enabled: false
150
-
151
- RSpec/AnyInstance:
152
- Enabled: false
153
-
154
- RSpec/ContextWording:
155
- Enabled: false
156
-
157
- RSpec/EmptyExampleGroup:
158
- Enabled: false
159
-
160
- RSpec/ExampleLength:
161
- Max: 15
162
-
163
- RSpec/LetSetup:
164
- Enabled: false
165
-
166
- RSpec/MessageChain:
167
- Enabled: false
168
-
169
- RSpec/MultipleExpectations:
170
- Enabled: false
171
-
172
- RSpec/NamedSubject:
173
- Enabled: false
174
-
175
- RSpec/NestedGroups:
176
- Max: 6
177
-
178
- # Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
179
- # For more information: https://docs.rubocop.org/en/latest/versioning/
180
-
181
- # 0.80
182
- Style/HashEachMethods:
183
- Enabled: true
184
-
185
- Style/HashTransformKeys:
186
- Enabled: true
187
-
188
- Style/HashTransformValues:
189
- Enabled: true
190
-
191
- # 0.81
192
- Lint/RaiseException:
193
- Enabled: true
194
-
195
- Lint/StructNewOverride:
196
- Enabled: true
197
-
198
- # 0.82
199
- Layout/SpaceAroundMethodCallOperator:
200
- Enabled: true
201
-
202
- Style/ExponentialNotation:
203
- Enabled: true
1
+ inherit_from:
2
+ - core.yml
3
+ - rails.yml
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.0.2'.freeze
3
+ VERSION = '6.2.0'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,52 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ Rails:
5
+ Enabled: true
6
+
7
+ Rails/Delegate:
8
+ Enabled: false
9
+
10
+ Rails/FilePath:
11
+ EnforcedStyle: arguments
12
+
13
+ Rails/TimeZone:
14
+ Enabled: false
15
+
16
+ # rubocop-rails 2.7
17
+ Rails/ActiveRecordCallbacksOrder:
18
+ Enabled: True
19
+
20
+ Rails/FindById:
21
+ Enabled: True
22
+
23
+ Rails/Inquiry:
24
+ Enabled: True
25
+
26
+ Rails/MailerName:
27
+ Enabled: True
28
+
29
+ Rails/MatchRoute:
30
+ Enabled: True
31
+
32
+ Rails/NegateInclude:
33
+ Enabled: True
34
+
35
+ Rails/Pluck:
36
+ Enabled: True
37
+
38
+ Rails/PluckInWhere:
39
+ Enabled: True
40
+
41
+ Rails/RenderInline:
42
+ Enabled: True
43
+
44
+ Rails/RenderPlainText:
45
+ Enabled: True
46
+
47
+ Rails/ShortI18n:
48
+ Enabled: True
49
+
50
+ Rails/WhereExists:
51
+ Enabled: True
52
+
@@ -20,10 +20,11 @@ Gem::Specification.new do |s|
20
20
  s.bindir = 'exe'
21
21
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ['lib']
23
+ s.required_ruby_version = '>= 2.5.7'
23
24
 
24
- s.add_dependency 'rubocop', '>= 0.82'
25
- s.add_dependency 'rubocop-performance', '>= 1.1.0'
26
- s.add_dependency 'rubocop-rails', '>= 2.4.2'
25
+ s.add_dependency 'rubocop', '>= 0.89'
26
+ s.add_dependency 'rubocop-performance', '>= 1.7'
27
+ s.add_dependency 'rubocop-rails', '>= 2.7'
27
28
  s.add_dependency 'rubocop-rspec', '~> 1.32'
28
29
  s.add_dependency 'rubocop-vendor', '~> 0'
29
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.2
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-07 00:00:00.000000000 Z
11
+ date: 2020-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.82'
19
+ version: '0.89'
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: '0.82'
26
+ version: '0.89'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.0
33
+ version: '1.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.0
40
+ version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.4.2
47
+ version: '2.7'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.4.2
54
+ version: '2.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -172,9 +172,11 @@ files:
172
172
  - Rakefile
173
173
  - bin/console
174
174
  - bin/setup
175
+ - core.yml
175
176
  - default.yml
176
177
  - lib/ws/style.rb
177
178
  - lib/ws/style/version.rb
179
+ - rails.yml
178
180
  - ws-style.gemspec
179
181
  homepage: https://github.com/wealthsimple/ws-style
180
182
  licenses: []
@@ -187,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
189
  requirements:
188
190
  - - ">="
189
191
  - !ruby/object:Gem::Version
190
- version: '0'
192
+ version: 2.5.7
191
193
  required_rubygems_version: !ruby/object:Gem::Requirement
192
194
  requirements:
193
195
  - - ">="