gl_rubocop 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +284 -0
- data/gl_rubocop.gemspec +1 -1
- data/lib/gl_rubocop/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f75beb7707ab139c3636e5dc9fccf0b17885ff73323fc2a2422d2c87a92c25f
|
4
|
+
data.tar.gz: f4251bff5975b3c7fe8988cce340b1de53156b2f9af9d221c9e5380bc9f7cc27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddbfc9af8ab44142472dfa71ec3c6fe1b344037513f71792b50e1c035229b2d25d56e76da7c1d652532c670948990c711bbad01263504d41bcb5a8e3eabe5e39
|
7
|
+
data.tar.gz: e15d33f2848455cbbebf08e728b6b9e9e127472ee8844f0264142be7fa3aa45040ee0e5d31138defe14145c394050cb97a7c2170cdc13cc4860a309c8cf83d81
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,284 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-performance
|
3
|
+
- rubocop-rails
|
4
|
+
- rubocop-rspec
|
5
|
+
- rubocop-magic_numbers
|
6
|
+
- ./lib/gl_rubocop/gl_cops/interactor_inherits_from_interactor_base.rb
|
7
|
+
- ./lib/gl_rubocop/gl_cops/callback_method_names.rb
|
8
|
+
- ./lib/gl_rubocop/gl_cops/prevent_erb_files.rb
|
9
|
+
- ./lib/gl_rubocop/gl_cops/sidekiq_inherits_from_sidekiq_job.rb
|
10
|
+
|
11
|
+
AllCops:
|
12
|
+
SuggestExtensions: false
|
13
|
+
NewCops: enable
|
14
|
+
Exclude:
|
15
|
+
- 'config/**/*'
|
16
|
+
- 'db/**/*'
|
17
|
+
- 'log/**/*'
|
18
|
+
- 'public/**/*'
|
19
|
+
- 'spec/factories/**/*'
|
20
|
+
- 'spec/support/**/*'
|
21
|
+
- 'swagger/**/*'
|
22
|
+
- 'tmp/**/*'
|
23
|
+
- 'vendor/**/*'
|
24
|
+
- 'bin/**/*'
|
25
|
+
|
26
|
+
GLCops/InteractorInheritsFromInteractorBase:
|
27
|
+
Enabled: true
|
28
|
+
Include:
|
29
|
+
- '**/interactors/**/*'
|
30
|
+
|
31
|
+
GLCops/CallbackMethodNames:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
GLCops/PreventErbFiles:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
GLCops/SidekiqInheritsFromSidekiqJob:
|
38
|
+
Include:
|
39
|
+
- '**/*_worker.rb'
|
40
|
+
- '**/*_job.rb'
|
41
|
+
|
42
|
+
Layout/LineLength:
|
43
|
+
Max: 100
|
44
|
+
AllowedPatterns:
|
45
|
+
- '^ *#' # Ignores full lines starting with any indentation and a comment (#)
|
46
|
+
|
47
|
+
Lint/MissingSuper:
|
48
|
+
Exclude:
|
49
|
+
- 'app/components/**/*'
|
50
|
+
|
51
|
+
MagicNumbers/NoAssignment:
|
52
|
+
Enabled: false
|
53
|
+
AllowedAssignments:
|
54
|
+
- instance_variables
|
55
|
+
- class_variables
|
56
|
+
- global_variables
|
57
|
+
|
58
|
+
MagicNumbers/NoArgument:
|
59
|
+
Enabled: true
|
60
|
+
PermittedValues:
|
61
|
+
- 0
|
62
|
+
- 1
|
63
|
+
|
64
|
+
MagicNumbers/NoDefault:
|
65
|
+
Enabled: true
|
66
|
+
PermittedValues:
|
67
|
+
- 0
|
68
|
+
- 1
|
69
|
+
|
70
|
+
MagicNumbers/NoReturn:
|
71
|
+
Enabled: true
|
72
|
+
PermittedReturnValues:
|
73
|
+
- 0
|
74
|
+
- 1
|
75
|
+
|
76
|
+
Metrics/AbcSize:
|
77
|
+
Max: 17
|
78
|
+
Exclude:
|
79
|
+
- 'db/**/*'
|
80
|
+
- 'spec/**/*'
|
81
|
+
- 'config/routes.rb'
|
82
|
+
- 'config/routes/*'
|
83
|
+
|
84
|
+
Metrics/MethodLength:
|
85
|
+
Max: 15
|
86
|
+
Exclude:
|
87
|
+
- 'app/mailers/**/*'
|
88
|
+
- 'config/routes/**/*'
|
89
|
+
- 'db/**/*'
|
90
|
+
- 'lib/tasks/**/*'
|
91
|
+
|
92
|
+
Metrics/BlockLength:
|
93
|
+
Exclude:
|
94
|
+
- 'app/admin/**/*'
|
95
|
+
- 'db/**/*'
|
96
|
+
- 'config/routes/*'
|
97
|
+
- 'config/coverband.rb'
|
98
|
+
- 'spec/**/*'
|
99
|
+
|
100
|
+
Metrics/ClassLength:
|
101
|
+
Max: 150
|
102
|
+
Exclude:
|
103
|
+
- 'db/seeds/**/*'
|
104
|
+
|
105
|
+
Metrics/CyclomaticComplexity:
|
106
|
+
Exclude:
|
107
|
+
- 'db/seeds/**/*'
|
108
|
+
|
109
|
+
Metrics/PerceivedComplexity:
|
110
|
+
Exclude:
|
111
|
+
- 'db/seeds/**/*'
|
112
|
+
|
113
|
+
Metrics/ParameterLists:
|
114
|
+
Exclude:
|
115
|
+
- 'db/seeds/**/*'
|
116
|
+
|
117
|
+
Performance/MapCompact:
|
118
|
+
Enabled: false
|
119
|
+
|
120
|
+
Style/Alias:
|
121
|
+
EnforcedStyle: prefer_alias_method
|
122
|
+
|
123
|
+
Style/AsciiComments:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
Naming/MethodParameterName:
|
127
|
+
MinNameLength: 1
|
128
|
+
|
129
|
+
Style/ClassAndModuleChildren:
|
130
|
+
Exclude:
|
131
|
+
- 'app/controllers/smart_donations_legacy/**/*'
|
132
|
+
|
133
|
+
Style/Documentation:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
Style/FrozenStringLiteralComment:
|
137
|
+
Enabled: false
|
138
|
+
|
139
|
+
Rails/TimeZone:
|
140
|
+
Enabled: false
|
141
|
+
|
142
|
+
Rails/FindEach:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
Rails/I18nLocaleTexts:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
Style/GlobalVars:
|
149
|
+
Exclude:
|
150
|
+
- 'spec/**/*'
|
151
|
+
|
152
|
+
RSpec/NestedGroups:
|
153
|
+
Max: 6
|
154
|
+
Exclude:
|
155
|
+
- 'spec/controllers/**/*'
|
156
|
+
- 'spec/requests/**/*'
|
157
|
+
|
158
|
+
RSpec/MultipleExpectations:
|
159
|
+
Max: 5
|
160
|
+
Exclude:
|
161
|
+
- 'spec/system/**/*'
|
162
|
+
|
163
|
+
RSpec/ExampleLength:
|
164
|
+
Max: 30
|
165
|
+
Exclude:
|
166
|
+
- 'spec/lib/props_module_spec.rb'
|
167
|
+
- 'spec/system/**/*'
|
168
|
+
- 'spec/serializers/**/*'
|
169
|
+
|
170
|
+
RSpec/AnyInstance:
|
171
|
+
Enabled: false
|
172
|
+
|
173
|
+
RSpec/ReceiveMessages:
|
174
|
+
Enabled: false
|
175
|
+
|
176
|
+
RSpec/VerifiedDoubles:
|
177
|
+
IgnoreSymbolicNames: true
|
178
|
+
|
179
|
+
Rails/SkipsModelValidations:
|
180
|
+
Exclude:
|
181
|
+
- 'spec/**/*'
|
182
|
+
- 'db/**/*'
|
183
|
+
|
184
|
+
RSpec/MessageSpies:
|
185
|
+
Enabled: false
|
186
|
+
|
187
|
+
RSpec/LetSetup:
|
188
|
+
Enabled: false
|
189
|
+
|
190
|
+
Rails/Output:
|
191
|
+
Exclude:
|
192
|
+
- 'db/seeds/**/*'
|
193
|
+
|
194
|
+
RSpec/EmptyExampleGroup:
|
195
|
+
Exclude:
|
196
|
+
- 'spec/api/**/*'
|
197
|
+
|
198
|
+
RSpec/DescribeClass:
|
199
|
+
Exclude:
|
200
|
+
- 'spec/api/**/*'
|
201
|
+
- 'spec/views/**/*'
|
202
|
+
- 'spec/lib/tasks/**/*'
|
203
|
+
|
204
|
+
Rails/ApplicationRecord:
|
205
|
+
Exclude:
|
206
|
+
- 'db/migrate/*'
|
207
|
+
|
208
|
+
RSpec/HookArgument:
|
209
|
+
Exclude:
|
210
|
+
- 'spec/support/**/*'
|
211
|
+
|
212
|
+
RSpec/InstanceVariable:
|
213
|
+
Exclude:
|
214
|
+
- 'spec/workers/salesforce/**/*'
|
215
|
+
- 'spec/views/**/*'
|
216
|
+
- 'spec/services/salesforce/**/*'
|
217
|
+
- 'spec/controllers/salesforce_controller_spec.rb'
|
218
|
+
- 'spec/controllers/v1/**/*'
|
219
|
+
|
220
|
+
Rails/BulkChangeTable:
|
221
|
+
Enabled: false
|
222
|
+
|
223
|
+
Rails/CreateTableWithTimestamps:
|
224
|
+
Enabled: false
|
225
|
+
|
226
|
+
Rails/UnknownEnv:
|
227
|
+
Environments:
|
228
|
+
- development
|
229
|
+
- staging
|
230
|
+
- sandbox
|
231
|
+
- production
|
232
|
+
- test
|
233
|
+
|
234
|
+
Style/HashAsLastArrayItem:
|
235
|
+
Enabled: false
|
236
|
+
|
237
|
+
Style/MultilineBlockChain:
|
238
|
+
Enabled: false
|
239
|
+
|
240
|
+
Naming/VariableNumber:
|
241
|
+
EnforcedStyle: 'snake_case'
|
242
|
+
AllowedIdentifiers:
|
243
|
+
- is_501c3
|
244
|
+
- last4
|
245
|
+
- line1
|
246
|
+
- line2
|
247
|
+
- address_line1
|
248
|
+
- address_line2
|
249
|
+
- google_oauth2
|
250
|
+
- s3
|
251
|
+
- shift4
|
252
|
+
- Shift4
|
253
|
+
|
254
|
+
RSpec/MultipleMemoizedHelpers:
|
255
|
+
Enabled: false
|
256
|
+
|
257
|
+
RSpecRails/InferredSpecType:
|
258
|
+
Enabled: false
|
259
|
+
|
260
|
+
RSpec/SortMetadata:
|
261
|
+
Enabled: false
|
262
|
+
|
263
|
+
RSpec/IndexedLet:
|
264
|
+
Enabled: false
|
265
|
+
|
266
|
+
RSpec/FilePath:
|
267
|
+
Enabled: true
|
268
|
+
Exclude:
|
269
|
+
- 'packs/*/spec/**/*' # Because of automatic namespacing
|
270
|
+
|
271
|
+
RSpec/SpecFilePathFormat:
|
272
|
+
Enabled: true
|
273
|
+
Exclude:
|
274
|
+
- 'packs/*/spec/**/*' # Because of automatic namespacing
|
275
|
+
|
276
|
+
RSpec/VariableName:
|
277
|
+
AllowedPatterns:
|
278
|
+
- 'Authorization' # used in RSwag specs
|
279
|
+
|
280
|
+
Capybara/ClickLinkOrButtonStyle:
|
281
|
+
EnforcedStyle: link_or_button
|
282
|
+
|
283
|
+
Capybara/NegationMatcher:
|
284
|
+
EnforcedStyle: not_to
|
data/gl_rubocop.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
# Specify which files should be added to the gem when it is released.
|
20
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
-
spec.files = %w[gl_rubocop.gemspec README.md LICENSE] +
|
21
|
+
spec.files = %w[gl_rubocop.gemspec README.md LICENSE .rubocop.yml] +
|
22
22
|
`git ls-files | grep -E '^(lib)'`.split("\n")
|
23
23
|
|
24
24
|
spec.bindir = 'exe'
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Give Lively
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -101,6 +101,7 @@ extensions: []
|
|
101
101
|
extra_rdoc_files:
|
102
102
|
- README.md
|
103
103
|
files:
|
104
|
+
- ".rubocop.yml"
|
104
105
|
- LICENSE
|
105
106
|
- README.md
|
106
107
|
- gl_rubocop.gemspec
|