platform-style 0.1.4 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -23
- data/default.yml +27 -2
- data/lib/platform/style/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf4aef91c3413e259dedf88796ebb232bc58fd3e4d4b68eb75d6f6dd791a1e6
|
4
|
+
data.tar.gz: 05c8e47958c330a7f4d57034341de3036c764035009a4376f3f07c02f061a586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '085a7b464c3628ea5ea8847745f6ae94648ffc90380c11f295790f862a331438486888c303b6a429cdc85577ada6b23171eb054fc1d9bdbbd62be99621a7c55a'
|
7
|
+
data.tar.gz: 59d2734002894674cd1dcc7ed6a2363eaeb044aaa54f7b29252acac98ed180b44570e37a90cf3652027930d9c36d8cba077fa7128ea1666ffc2ac89ccfc72cb5
|
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
platform-style (0.
|
5
|
-
rubocop (~> 1.
|
6
|
-
rubocop-graphql (~> 0.
|
7
|
-
rubocop-performance (~> 1.
|
8
|
-
rubocop-rails (~> 2.
|
9
|
-
rubocop-rspec (~> 2.
|
4
|
+
platform-style (0.2.0)
|
5
|
+
rubocop (~> 1.42)
|
6
|
+
rubocop-graphql (~> 0.18)
|
7
|
+
rubocop-performance (~> 1.15)
|
8
|
+
rubocop-rails (~> 2.17)
|
9
|
+
rubocop-rspec (~> 2.16)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (7.0.
|
14
|
+
activesupport (7.0.4)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
@@ -20,43 +20,43 @@ GEM
|
|
20
20
|
concurrent-ruby (1.1.10)
|
21
21
|
i18n (1.12.0)
|
22
22
|
concurrent-ruby (~> 1.0)
|
23
|
-
json (2.6.
|
24
|
-
minitest (5.
|
23
|
+
json (2.6.3)
|
24
|
+
minitest (5.17.0)
|
25
25
|
parallel (1.22.1)
|
26
|
-
parser (3.
|
26
|
+
parser (3.2.0.0)
|
27
27
|
ast (~> 2.4.1)
|
28
|
-
rack (
|
28
|
+
rack (3.0.3)
|
29
29
|
rainbow (3.1.1)
|
30
30
|
rake (13.0.6)
|
31
|
-
regexp_parser (2.
|
31
|
+
regexp_parser (2.6.1)
|
32
32
|
rexml (3.2.5)
|
33
|
-
rubocop (1.
|
33
|
+
rubocop (1.42.0)
|
34
34
|
json (~> 2.3)
|
35
35
|
parallel (~> 1.10)
|
36
|
-
parser (>= 3.1.
|
36
|
+
parser (>= 3.1.2.1)
|
37
37
|
rainbow (>= 2.2.2, < 4.0)
|
38
38
|
regexp_parser (>= 1.8, < 3.0)
|
39
39
|
rexml (>= 3.2.5, < 4.0)
|
40
|
-
rubocop-ast (>= 1.
|
40
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
41
41
|
ruby-progressbar (~> 1.7)
|
42
42
|
unicode-display_width (>= 1.4.0, < 3.0)
|
43
|
-
rubocop-ast (1.
|
43
|
+
rubocop-ast (1.24.1)
|
44
44
|
parser (>= 3.1.1.0)
|
45
|
-
rubocop-graphql (0.
|
45
|
+
rubocop-graphql (0.18.0)
|
46
46
|
rubocop (>= 0.87, < 2)
|
47
|
-
rubocop-performance (1.
|
47
|
+
rubocop-performance (1.15.2)
|
48
48
|
rubocop (>= 1.7.0, < 2.0)
|
49
49
|
rubocop-ast (>= 0.4.0)
|
50
|
-
rubocop-rails (2.
|
50
|
+
rubocop-rails (2.17.4)
|
51
51
|
activesupport (>= 4.2.0)
|
52
52
|
rack (>= 1.1)
|
53
|
-
rubocop (>= 1.
|
54
|
-
rubocop-rspec (2.
|
55
|
-
rubocop (~> 1.
|
53
|
+
rubocop (>= 1.33.0, < 2.0)
|
54
|
+
rubocop-rspec (2.16.0)
|
55
|
+
rubocop (~> 1.33)
|
56
56
|
ruby-progressbar (1.11.0)
|
57
57
|
tzinfo (2.0.5)
|
58
58
|
concurrent-ruby (~> 1.0)
|
59
|
-
unicode-display_width (2.2
|
59
|
+
unicode-display_width (2.4.2)
|
60
60
|
|
61
61
|
PLATFORMS
|
62
62
|
arm64-darwin-21
|
data/default.yml
CHANGED
@@ -21,6 +21,9 @@ GraphQL/ExtractInputType:
|
|
21
21
|
GraphQL/ExtractType:
|
22
22
|
Enabled: false
|
23
23
|
|
24
|
+
GraphQL/FieldMethod:
|
25
|
+
Enabled: false
|
26
|
+
|
24
27
|
# Layout
|
25
28
|
|
26
29
|
Layout/ClassStructure:
|
@@ -48,7 +51,10 @@ Layout/ClassStructure:
|
|
48
51
|
- after_commit
|
49
52
|
macros:
|
50
53
|
- accepts_nested_attributes_for
|
54
|
+
- acts_as_sequenced
|
55
|
+
- counter_culture
|
51
56
|
- has_secure_token
|
57
|
+
- monetize
|
52
58
|
- serialize
|
53
59
|
module_inclusion:
|
54
60
|
- include
|
@@ -73,9 +79,9 @@ Layout/ClassStructure:
|
|
73
79
|
- delegate
|
74
80
|
- callbacks
|
75
81
|
- macros
|
82
|
+
- public_class_methods
|
76
83
|
- initializer
|
77
84
|
- public_methods
|
78
|
-
- public_class_methods
|
79
85
|
- protected_methods
|
80
86
|
- private_constants
|
81
87
|
- private_attributes
|
@@ -118,11 +124,14 @@ Metrics/AbcSize:
|
|
118
124
|
|
119
125
|
Metrics/BlockLength:
|
120
126
|
AllowedMethods:
|
127
|
+
- class_methods
|
121
128
|
- context
|
122
129
|
- describe
|
123
130
|
- expects
|
124
131
|
- factory
|
125
132
|
- it
|
133
|
+
- mutation
|
134
|
+
- parse
|
126
135
|
- promises
|
127
136
|
- routes.draw
|
128
137
|
- shared_examples
|
@@ -146,6 +155,9 @@ Metrics/ClassLength:
|
|
146
155
|
Enabled: true
|
147
156
|
Max: 200
|
148
157
|
|
158
|
+
Metrics/CyclomaticComplexity:
|
159
|
+
Max: 10
|
160
|
+
|
149
161
|
Metrics/MethodLength:
|
150
162
|
CountAsOne:
|
151
163
|
- array
|
@@ -156,6 +168,7 @@ Metrics/MethodLength:
|
|
156
168
|
Max: 20
|
157
169
|
Exclude:
|
158
170
|
- db/data/*.rb
|
171
|
+
- db/migrate/*.rb
|
159
172
|
|
160
173
|
Metrics/ModuleLength:
|
161
174
|
CountAsOne:
|
@@ -169,10 +182,16 @@ Metrics/ModuleLength:
|
|
169
182
|
# Naming
|
170
183
|
|
171
184
|
Naming/VariableNumber:
|
185
|
+
AllowedIdentifiers:
|
186
|
+
- address1
|
187
|
+
- address2
|
188
|
+
CheckSymbols: true
|
189
|
+
Enabled: true
|
172
190
|
EnforcedStyle: snake_case
|
173
191
|
Exclude:
|
174
192
|
- app/graphql/types/**/*.rb
|
175
193
|
- spec/factories/**/*.rb
|
194
|
+
- spec/requests/**/*.rb
|
176
195
|
|
177
196
|
# RSpec
|
178
197
|
|
@@ -195,7 +214,7 @@ RSpec/NamedSubject:
|
|
195
214
|
Enabled: false
|
196
215
|
|
197
216
|
RSpec/NestedGroups:
|
198
|
-
Max:
|
217
|
+
Max: 5
|
199
218
|
|
200
219
|
RSpec/MultipleExpectations:
|
201
220
|
Max: 10
|
@@ -207,3 +226,9 @@ Style/Documentation:
|
|
207
226
|
|
208
227
|
Style/MultilineIfModifier:
|
209
228
|
Enabled: false
|
229
|
+
|
230
|
+
Style/NumericLiterals:
|
231
|
+
AllowedPatterns:
|
232
|
+
- \d{10,}
|
233
|
+
Enabled: true
|
234
|
+
Strict: false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platform-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Bird
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.42'
|
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.
|
26
|
+
version: '1.42'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-graphql
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.18'
|
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: '0.
|
40
|
+
version: '0.18'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-performance
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.15'
|
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: '1.
|
54
|
+
version: '1.15'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.17'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.17'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.16'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.16'
|
83
83
|
description:
|
84
84
|
email:
|
85
85
|
- david@discolabs.com
|