gl_rubocop 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/default.yml +74 -67
- data/lib/gl_rubocop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67a8ea79eaac3f32be89d377fe078231dd55f7d82231ee0f33b744f45d231290
|
4
|
+
data.tar.gz: eea890a130dcffab3e5e2e9aba977cf34fe436ab102df89ff880c5e001451662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 332497964856ab54d4c1c1e5185267f7ee040efa8e6b60e53edfda7fed18fd34eb0ae207a1c226c4aa004d23f8e89511792792c74148b33742ab5413d5a6d72c
|
7
|
+
data.tar.gz: 7f96dc1fcc9e4a175af46daaed4f55cb0b60db443278b7cdc0e495dbcd6ffeb0498723832acf16d1157e1e881f3bed64ed82203d86ed03a7503c1f646d804414
|
data/default.yml
CHANGED
@@ -12,26 +12,25 @@ require:
|
|
12
12
|
- ./lib/gl_rubocop/gl_cops/sidekiq_inherits_from_sidekiq_job.rb
|
13
13
|
- ./lib/gl_rubocop/gl_cops/unique_identifier.rb
|
14
14
|
|
15
|
-
|
16
15
|
AllCops:
|
17
16
|
SuggestExtensions: false
|
18
17
|
NewCops: enable
|
19
18
|
Exclude:
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
19
|
+
- "config/**/*"
|
20
|
+
- "db/**/*"
|
21
|
+
- "log/**/*"
|
22
|
+
- "public/**/*"
|
23
|
+
- "spec/factories/**/*"
|
24
|
+
- "spec/support/**/*"
|
25
|
+
- "swagger/**/*"
|
26
|
+
- "tmp/**/*"
|
27
|
+
- "vendor/**/*"
|
28
|
+
- "bin/**/*"
|
30
29
|
|
31
30
|
GLCops/InteractorInheritsFromInteractorBase:
|
32
31
|
Enabled: true
|
33
32
|
Include:
|
34
|
-
-
|
33
|
+
- "app/interactors/**/*"
|
35
34
|
|
36
35
|
GLCops/CallbackMethodNames:
|
37
36
|
Enabled: true
|
@@ -44,88 +43,96 @@ GLCops/RailsCache:
|
|
44
43
|
|
45
44
|
GLCops/SidekiqInheritsFromSidekiqJob:
|
46
45
|
Include:
|
47
|
-
-
|
48
|
-
-
|
46
|
+
- "app/**/*_worker.rb"
|
47
|
+
- "app/**/*_job.rb"
|
49
48
|
|
50
49
|
GLCops/UniqueIdentifier:
|
51
50
|
Enabled: true
|
52
51
|
Include:
|
53
|
-
-
|
52
|
+
- "app/components/**/*.haml"
|
54
53
|
|
55
54
|
Layout/LineLength:
|
56
55
|
Max: 100
|
57
56
|
AllowedPatterns:
|
58
|
-
-
|
57
|
+
- "^ *#" # Ignores full lines starting with any indentation and a comment (#)
|
59
58
|
|
60
59
|
Lint/MissingSuper:
|
61
60
|
Exclude:
|
62
|
-
-
|
61
|
+
- "app/components/**/*"
|
63
62
|
|
64
63
|
MagicNumbers/NoAssignment:
|
64
|
+
Exclude:
|
65
|
+
- "/spec/**/*"
|
65
66
|
Enabled: false
|
66
67
|
AllowedAssignments:
|
67
68
|
- instance_variables
|
68
69
|
- class_variables
|
69
70
|
- global_variables
|
70
71
|
|
71
|
-
MagicNumbers/NoArgument:
|
72
|
+
MagicNumbers/NoArgument:
|
73
|
+
Exclude:
|
74
|
+
- "/spec/**/*"
|
72
75
|
Enabled: true
|
73
76
|
PermittedValues:
|
74
|
-
|
75
|
-
|
77
|
+
- 0
|
78
|
+
- 1
|
76
79
|
|
77
80
|
MagicNumbers/NoDefault:
|
81
|
+
Exclude:
|
82
|
+
- "/spec/**/*"
|
78
83
|
Enabled: true
|
79
84
|
PermittedValues:
|
80
|
-
|
81
|
-
|
85
|
+
- 0
|
86
|
+
- 1
|
82
87
|
|
83
88
|
MagicNumbers/NoReturn:
|
89
|
+
Exclude:
|
90
|
+
- "/spec/**/*"
|
84
91
|
Enabled: true
|
85
92
|
PermittedReturnValues:
|
86
|
-
|
87
|
-
|
93
|
+
- 0
|
94
|
+
- 1
|
88
95
|
|
89
96
|
Metrics/AbcSize:
|
90
97
|
Max: 17
|
91
98
|
Exclude:
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
99
|
+
- "db/**/*"
|
100
|
+
- "spec/**/*"
|
101
|
+
- "config/routes.rb"
|
102
|
+
- "config/routes/*"
|
96
103
|
|
97
104
|
Metrics/MethodLength:
|
98
105
|
Max: 15
|
99
106
|
Exclude:
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
107
|
+
- "app/mailers/**/*"
|
108
|
+
- "config/routes/**/*"
|
109
|
+
- "db/**/*"
|
110
|
+
- "lib/tasks/**/*"
|
104
111
|
|
105
112
|
Metrics/BlockLength:
|
106
113
|
Exclude:
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
114
|
+
- "app/admin/**/*"
|
115
|
+
- "db/**/*"
|
116
|
+
- "config/routes/*"
|
117
|
+
- "config/coverband.rb"
|
118
|
+
- "spec/**/*"
|
112
119
|
|
113
120
|
Metrics/ClassLength:
|
114
121
|
Max: 150
|
115
122
|
Exclude:
|
116
|
-
-
|
123
|
+
- "db/seeds/**/*"
|
117
124
|
|
118
125
|
Metrics/CyclomaticComplexity:
|
119
126
|
Exclude:
|
120
|
-
-
|
127
|
+
- "db/seeds/**/*"
|
121
128
|
|
122
129
|
Metrics/PerceivedComplexity:
|
123
130
|
Exclude:
|
124
|
-
-
|
131
|
+
- "db/seeds/**/*"
|
125
132
|
|
126
133
|
Metrics/ParameterLists:
|
127
134
|
Exclude:
|
128
|
-
-
|
135
|
+
- "db/seeds/**/*"
|
129
136
|
|
130
137
|
Performance/MapCompact:
|
131
138
|
Enabled: false
|
@@ -141,7 +148,7 @@ Naming/MethodParameterName:
|
|
141
148
|
|
142
149
|
Style/ClassAndModuleChildren:
|
143
150
|
Exclude:
|
144
|
-
-
|
151
|
+
- "app/controllers/smart_donations_legacy/**/*"
|
145
152
|
|
146
153
|
Style/Documentation:
|
147
154
|
Enabled: false
|
@@ -165,25 +172,25 @@ Rails/UnusedIgnoredColumns:
|
|
165
172
|
|
166
173
|
Style/GlobalVars:
|
167
174
|
Exclude:
|
168
|
-
-
|
175
|
+
- "spec/**/*"
|
169
176
|
|
170
177
|
RSpec/NestedGroups:
|
171
178
|
Max: 6
|
172
179
|
Exclude:
|
173
|
-
-
|
174
|
-
-
|
180
|
+
- "spec/controllers/**/*"
|
181
|
+
- "spec/requests/**/*"
|
175
182
|
|
176
183
|
RSpec/MultipleExpectations:
|
177
184
|
Max: 5
|
178
185
|
Exclude:
|
179
|
-
-
|
186
|
+
- "spec/system/**/*"
|
180
187
|
|
181
188
|
RSpec/ExampleLength:
|
182
189
|
Max: 30
|
183
190
|
Exclude:
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
191
|
+
- "spec/lib/props_module_spec.rb"
|
192
|
+
- "spec/system/**/*"
|
193
|
+
- "spec/serializers/**/*"
|
187
194
|
|
188
195
|
RSpec/AnyInstance:
|
189
196
|
Enabled: false
|
@@ -196,8 +203,8 @@ RSpec/VerifiedDoubles:
|
|
196
203
|
|
197
204
|
Rails/SkipsModelValidations:
|
198
205
|
Exclude:
|
199
|
-
-
|
200
|
-
-
|
206
|
+
- "spec/**/*"
|
207
|
+
- "db/**/*"
|
201
208
|
|
202
209
|
RSpec/MessageSpies:
|
203
210
|
Enabled: false
|
@@ -207,33 +214,33 @@ RSpec/LetSetup:
|
|
207
214
|
|
208
215
|
Rails/Output:
|
209
216
|
Exclude:
|
210
|
-
-
|
217
|
+
- "db/seeds/**/*"
|
211
218
|
|
212
219
|
RSpec/EmptyExampleGroup:
|
213
220
|
Exclude:
|
214
|
-
-
|
221
|
+
- "spec/api/**/*"
|
215
222
|
|
216
223
|
RSpec/DescribeClass:
|
217
224
|
Exclude:
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
225
|
+
- "spec/api/**/*"
|
226
|
+
- "spec/views/**/*"
|
227
|
+
- "spec/lib/tasks/**/*"
|
221
228
|
|
222
229
|
Rails/ApplicationRecord:
|
223
230
|
Exclude:
|
224
|
-
-
|
231
|
+
- "db/migrate/*"
|
225
232
|
|
226
233
|
RSpec/HookArgument:
|
227
234
|
Exclude:
|
228
|
-
-
|
235
|
+
- "spec/support/**/*"
|
229
236
|
|
230
237
|
RSpec/InstanceVariable:
|
231
238
|
Exclude:
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
239
|
+
- "spec/workers/salesforce/**/*"
|
240
|
+
- "spec/views/**/*"
|
241
|
+
- "spec/services/salesforce/**/*"
|
242
|
+
- "spec/controllers/salesforce_controller_spec.rb"
|
243
|
+
- "spec/controllers/v1/**/*"
|
237
244
|
|
238
245
|
Rails/BulkChangeTable:
|
239
246
|
Enabled: false
|
@@ -257,7 +264,7 @@ Style/MultilineBlockChain:
|
|
257
264
|
Enabled: false
|
258
265
|
|
259
266
|
Naming/VariableNumber:
|
260
|
-
EnforcedStyle:
|
267
|
+
EnforcedStyle: "snake_case"
|
261
268
|
AllowedIdentifiers:
|
262
269
|
- is_501c3
|
263
270
|
- last4
|
@@ -285,16 +292,16 @@ RSpec/IndexedLet:
|
|
285
292
|
RSpec/FilePath:
|
286
293
|
Enabled: true
|
287
294
|
Exclude:
|
288
|
-
-
|
295
|
+
- "packs/*/spec/**/*" # Because of automatic namespacing
|
289
296
|
|
290
297
|
RSpec/SpecFilePathFormat:
|
291
298
|
Enabled: true
|
292
299
|
Exclude:
|
293
|
-
-
|
300
|
+
- "packs/*/spec/**/*" # Because of automatic namespacing
|
294
301
|
|
295
302
|
RSpec/VariableName:
|
296
303
|
AllowedPatterns:
|
297
|
-
-
|
304
|
+
- "Authorization" # used in RSwag specs
|
298
305
|
|
299
306
|
Capybara/ClickLinkOrButtonStyle:
|
300
307
|
EnforcedStyle: link_or_button
|
data/lib/gl_rubocop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gl_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Give Lively
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|