gl_rubocop 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/default.yml +74 -67
  3. data/lib/gl_rubocop/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c97906865d188f4a1807b324836b2c20f6dbd5f2cf334f3d50b825f33af1ee54
4
- data.tar.gz: 6fa0cd4593fda7e991ce66656e14c9b4170244581a6acf285ea9e396ec27ec04
3
+ metadata.gz: 67a8ea79eaac3f32be89d377fe078231dd55f7d82231ee0f33b744f45d231290
4
+ data.tar.gz: eea890a130dcffab3e5e2e9aba977cf34fe436ab102df89ff880c5e001451662
5
5
  SHA512:
6
- metadata.gz: 723854e3cea8ca330f0a7a5314a4f8d509ab3fb05892d7d454ad29967e1c8e6b680d7057f10185089369cdb0eb35103ee57d7abdd06fe8dbc8cab78ff0ed9be3
7
- data.tar.gz: 373d524cf7c4d8cc8b44d3cb4ec74ad68c25b474bb5782079d1da40ae1ed990fc9cb96c85dae14339cb0df37d427f7a8d80cbe102468add179acfcfc1ec5c3ff
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
- - 'config/**/*'
21
- - 'db/**/*'
22
- - 'log/**/*'
23
- - 'public/**/*'
24
- - 'spec/factories/**/*'
25
- - 'spec/support/**/*'
26
- - 'swagger/**/*'
27
- - 'tmp/**/*'
28
- - 'vendor/**/*'
29
- - 'bin/**/*'
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
- - 'app/interactors/**/*'
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
- - 'app/**/*_worker.rb'
48
- - 'app/**/*_job.rb'
46
+ - "app/**/*_worker.rb"
47
+ - "app/**/*_job.rb"
49
48
 
50
49
  GLCops/UniqueIdentifier:
51
50
  Enabled: true
52
51
  Include:
53
- - 'app/components/**/*.haml'
52
+ - "app/components/**/*.haml"
54
53
 
55
54
  Layout/LineLength:
56
55
  Max: 100
57
56
  AllowedPatterns:
58
- - '^ *#' # Ignores full lines starting with any indentation and a comment (#)
57
+ - "^ *#" # Ignores full lines starting with any indentation and a comment (#)
59
58
 
60
59
  Lint/MissingSuper:
61
60
  Exclude:
62
- - 'app/components/**/*'
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
- - 0
75
- - 1
77
+ - 0
78
+ - 1
76
79
 
77
80
  MagicNumbers/NoDefault:
81
+ Exclude:
82
+ - "/spec/**/*"
78
83
  Enabled: true
79
84
  PermittedValues:
80
- - 0
81
- - 1
85
+ - 0
86
+ - 1
82
87
 
83
88
  MagicNumbers/NoReturn:
89
+ Exclude:
90
+ - "/spec/**/*"
84
91
  Enabled: true
85
92
  PermittedReturnValues:
86
- - 0
87
- - 1
93
+ - 0
94
+ - 1
88
95
 
89
96
  Metrics/AbcSize:
90
97
  Max: 17
91
98
  Exclude:
92
- - 'db/**/*'
93
- - 'spec/**/*'
94
- - 'config/routes.rb'
95
- - 'config/routes/*'
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
- - 'app/mailers/**/*'
101
- - 'config/routes/**/*'
102
- - 'db/**/*'
103
- - 'lib/tasks/**/*'
107
+ - "app/mailers/**/*"
108
+ - "config/routes/**/*"
109
+ - "db/**/*"
110
+ - "lib/tasks/**/*"
104
111
 
105
112
  Metrics/BlockLength:
106
113
  Exclude:
107
- - 'app/admin/**/*'
108
- - 'db/**/*'
109
- - 'config/routes/*'
110
- - 'config/coverband.rb'
111
- - 'spec/**/*'
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
- - 'db/seeds/**/*'
123
+ - "db/seeds/**/*"
117
124
 
118
125
  Metrics/CyclomaticComplexity:
119
126
  Exclude:
120
- - 'db/seeds/**/*'
127
+ - "db/seeds/**/*"
121
128
 
122
129
  Metrics/PerceivedComplexity:
123
130
  Exclude:
124
- - 'db/seeds/**/*'
131
+ - "db/seeds/**/*"
125
132
 
126
133
  Metrics/ParameterLists:
127
134
  Exclude:
128
- - 'db/seeds/**/*'
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
- - 'app/controllers/smart_donations_legacy/**/*'
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
- - 'spec/**/*'
175
+ - "spec/**/*"
169
176
 
170
177
  RSpec/NestedGroups:
171
178
  Max: 6
172
179
  Exclude:
173
- - 'spec/controllers/**/*'
174
- - 'spec/requests/**/*'
180
+ - "spec/controllers/**/*"
181
+ - "spec/requests/**/*"
175
182
 
176
183
  RSpec/MultipleExpectations:
177
184
  Max: 5
178
185
  Exclude:
179
- - 'spec/system/**/*'
186
+ - "spec/system/**/*"
180
187
 
181
188
  RSpec/ExampleLength:
182
189
  Max: 30
183
190
  Exclude:
184
- - 'spec/lib/props_module_spec.rb'
185
- - 'spec/system/**/*'
186
- - 'spec/serializers/**/*'
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
- - 'spec/**/*'
200
- - 'db/**/*'
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
- - 'db/seeds/**/*'
217
+ - "db/seeds/**/*"
211
218
 
212
219
  RSpec/EmptyExampleGroup:
213
220
  Exclude:
214
- - 'spec/api/**/*'
221
+ - "spec/api/**/*"
215
222
 
216
223
  RSpec/DescribeClass:
217
224
  Exclude:
218
- - 'spec/api/**/*'
219
- - 'spec/views/**/*'
220
- - 'spec/lib/tasks/**/*'
225
+ - "spec/api/**/*"
226
+ - "spec/views/**/*"
227
+ - "spec/lib/tasks/**/*"
221
228
 
222
229
  Rails/ApplicationRecord:
223
230
  Exclude:
224
- - 'db/migrate/*'
231
+ - "db/migrate/*"
225
232
 
226
233
  RSpec/HookArgument:
227
234
  Exclude:
228
- - 'spec/support/**/*'
235
+ - "spec/support/**/*"
229
236
 
230
237
  RSpec/InstanceVariable:
231
238
  Exclude:
232
- - 'spec/workers/salesforce/**/*'
233
- - 'spec/views/**/*'
234
- - 'spec/services/salesforce/**/*'
235
- - 'spec/controllers/salesforce_controller_spec.rb'
236
- - 'spec/controllers/v1/**/*'
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: 'snake_case'
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
- - 'packs/*/spec/**/*' # Because of automatic namespacing
295
+ - "packs/*/spec/**/*" # Because of automatic namespacing
289
296
 
290
297
  RSpec/SpecFilePathFormat:
291
298
  Enabled: true
292
299
  Exclude:
293
- - 'packs/*/spec/**/*' # Because of automatic namespacing
300
+ - "packs/*/spec/**/*" # Because of automatic namespacing
294
301
 
295
302
  RSpec/VariableName:
296
303
  AllowedPatterns:
297
- - 'Authorization' # used in RSwag specs
304
+ - "Authorization" # used in RSwag specs
298
305
 
299
306
  Capybara/ClickLinkOrButtonStyle:
300
307
  EnforcedStyle: link_or_button
@@ -1,3 +1,3 @@
1
1
  module GLRubocop
2
- VERSION = '0.2.7'.freeze
2
+ VERSION = '0.2.8'.freeze
3
3
  end
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.7
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-01-23 00:00:00.000000000 Z
11
+ date: 2025-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop