vehiculum-codestyle 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/gem-push.yml +30 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +9 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +30 -0
- data/Rakefile +1 -0
- data/default.yml +579 -0
- data/lib/vehiculum/codestyle.rb +7 -0
- data/lib/vehiculum/codestyle/version.rb +5 -0
- data/vehiculum-codestyle.gemspec +26 -0
- metadata +138 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 58f10a4633c8c15341d7f333d0fecf1eb8a789b794584ef27f28b7a54f365662
|
4
|
+
data.tar.gz: 2046045be0cf913e4507a20656ace93e540f666843317a6dc011b9b4ab6941a6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1137a39e294e8a1d281403309c8c8371e0d89ce5b4bcac7ebdc5338aba6a1fb10232067c400fad820ce682c47ee22f9b9d324d83ac7c16b5858148173bf9bf47
|
7
|
+
data.tar.gz: fedfc5be039818af8e52a36b9434d68d767fd7b47a2f38add09aafb015d557e9573adb542fbc4209a1fc95bea1f74faf344f14718ada4ebbdc04ebc76ffdab4a
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: vehiculum-codestyle
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby 2.6
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
version: 2.6.x
|
20
|
+
|
21
|
+
- name: Publish to RubyGems
|
22
|
+
run: |
|
23
|
+
mkdir -p $HOME/.gem
|
24
|
+
touch $HOME/.gem/credentials
|
25
|
+
chmod 0600 $HOME/.gem/credentials
|
26
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
27
|
+
gem build *.gemspec
|
28
|
+
gem push *.gem
|
29
|
+
env:
|
30
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 SUSE Linux GmbH
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# vehiculum-codestyle
|
2
|
+
|
3
|
+
Shared Ruby style guide used by Vehiculum Tech team
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
Add this line to your application's Gemfile:
|
7
|
+
|
8
|
+
```
|
9
|
+
group :test, :development do
|
10
|
+
gem 'scc-codestyle'
|
11
|
+
end
|
12
|
+
```
|
13
|
+
|
14
|
+
You do not need to include RuboCop directly in your application's dependencies. Vehiculum::Codestyle will include a specific version of rubocop and rubocop-rspec that is shared across all projects.
|
15
|
+
|
16
|
+
Usage
|
17
|
+
Create a .rubocop.yml with the following directives:
|
18
|
+
|
19
|
+
inherit_gem:
|
20
|
+
vehiculum-codestyle:
|
21
|
+
- default.yml
|
22
|
+
Now, run:
|
23
|
+
|
24
|
+
$ bundle exec rubocop
|
25
|
+
You can also automatically generate a .rubocop_todo.yml file to temporarily ignore failing cops until the offenses are removed from your code base. Run:
|
26
|
+
|
27
|
+
$ bundle exec rubocop --auto-gen-config
|
28
|
+
And add this to .rubocop.yml below the previous block:
|
29
|
+
|
30
|
+
inherit_from: .rubocop_todo.yml
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/default.yml
ADDED
@@ -0,0 +1,579 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.6.5
|
3
|
+
DisplayCopNames: true
|
4
|
+
DisplayStyleGuide: true
|
5
|
+
ExtraDetails: true
|
6
|
+
|
7
|
+
Exclude:
|
8
|
+
- .bundle/**/*
|
9
|
+
- db/schema.rb
|
10
|
+
- features/**/*
|
11
|
+
- vendor/**/*
|
12
|
+
- tmp/**/*
|
13
|
+
- lib/locale/*
|
14
|
+
|
15
|
+
require:
|
16
|
+
- rubocop-performance
|
17
|
+
- rubocop-rails
|
18
|
+
- rubocop-rspec
|
19
|
+
|
20
|
+
Rails/SkipsModelValidations:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Bundler/DuplicatedGem:
|
24
|
+
Enabled: true
|
25
|
+
|
26
|
+
Bundler/OrderedGems:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
30
|
+
Enabled: true
|
31
|
+
|
32
|
+
Style/RedundantCondition:
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
Style/RedundantSort:
|
36
|
+
Enabled: true
|
37
|
+
|
38
|
+
Style/SignalException:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Style/SymbolLiteral:
|
42
|
+
Enabled: true
|
43
|
+
|
44
|
+
Layout/SpaceAroundOperators:
|
45
|
+
Enabled: true
|
46
|
+
|
47
|
+
Style/ParallelAssignment:
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Style/ParenthesesAroundCondition:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
Style/NumericLiterals:
|
54
|
+
MinDigits: 14
|
55
|
+
|
56
|
+
Style/Not:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Style/Next:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
Layout/ClosingParenthesisIndentation:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Style/WordArray:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
Layout/SpaceAfterComma:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Layout/SpaceInsideReferenceBrackets:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Layout/SpaceInsideParens:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Layout/SpaceBeforeFirstArg:
|
81
|
+
Enabled: true
|
82
|
+
AllowForAlignment: false
|
83
|
+
|
84
|
+
Layout/MultilineOperationIndentation:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Style/MethodDefParentheses:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Style/MethodCallWithoutArgsParentheses:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Style/LineEndConcatenation:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Layout/LeadingCommentSpace:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Layout/ArrayAlignment:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Layout/HashAlignment:
|
103
|
+
Enabled: true
|
104
|
+
EnforcedLastArgumentHashStyle: ignore_implicit
|
105
|
+
|
106
|
+
Layout/CaseIndentation:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Style/GuardClause:
|
110
|
+
Enabled: false
|
111
|
+
|
112
|
+
Style/HashSyntax:
|
113
|
+
EnforcedStyle: ruby19
|
114
|
+
|
115
|
+
Style/RedundantSelf:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Lint/DeprecatedClassMethods:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Style/NilComparison:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Layout/EmptyLineBetweenDefs:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Layout/EmptyLines:
|
128
|
+
Enabled: false
|
129
|
+
|
130
|
+
Layout/EmptyLinesAroundAccessModifier:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Layout/EmptyLinesAroundClassBody:
|
134
|
+
Enabled: true
|
135
|
+
EnforcedStyle: no_empty_lines
|
136
|
+
|
137
|
+
Style/EmptyLiteral:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Style/For:
|
141
|
+
Enabled: true
|
142
|
+
|
143
|
+
Lint/AssignmentInCondition:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
Layout/BlockAlignment:
|
147
|
+
Enabled: true
|
148
|
+
|
149
|
+
Lint/LiteralAsCondition:
|
150
|
+
Enabled: true
|
151
|
+
|
152
|
+
Lint/Loop:
|
153
|
+
Enabled: true
|
154
|
+
|
155
|
+
Lint/MissingCopEnableDirective:
|
156
|
+
Enable: true
|
157
|
+
|
158
|
+
Lint/ParenthesesAsGroupedExpression:
|
159
|
+
Enabled: true
|
160
|
+
|
161
|
+
Lint/RescueException:
|
162
|
+
Enabled: true
|
163
|
+
|
164
|
+
Lint/ShadowingOuterLocalVariable:
|
165
|
+
Enabled: false
|
166
|
+
|
167
|
+
Lint/UnusedBlockArgument:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
Lint/UnusedMethodArgument:
|
171
|
+
Enabled: true
|
172
|
+
|
173
|
+
Lint/UselessAssignment:
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
Lint/Void:
|
177
|
+
Enabled: true
|
178
|
+
|
179
|
+
Style/StringLiterals:
|
180
|
+
Enabled: true
|
181
|
+
|
182
|
+
Lint/AmbiguousRegexpLiteral:
|
183
|
+
Enabled: true
|
184
|
+
|
185
|
+
Lint/Debugger:
|
186
|
+
Enabled: true
|
187
|
+
|
188
|
+
Layout/EndAlignment:
|
189
|
+
Enabled: true
|
190
|
+
|
191
|
+
Lint/SuppressedException:
|
192
|
+
Enabled: true
|
193
|
+
|
194
|
+
Lint/RedundantStringCoercion:
|
195
|
+
Enabled: true
|
196
|
+
|
197
|
+
Lint/RedundantCopDisableDirective:
|
198
|
+
Enabled: true
|
199
|
+
|
200
|
+
Layout/SpaceInsideHashLiteralBraces:
|
201
|
+
Enabled: true
|
202
|
+
|
203
|
+
Layout/SpaceInsideBlockBraces:
|
204
|
+
Enabled: true
|
205
|
+
|
206
|
+
Layout/SpaceBeforeBlockBraces:
|
207
|
+
Enabled: true
|
208
|
+
|
209
|
+
Layout/TrailingEmptyLines:
|
210
|
+
Enabled: true
|
211
|
+
|
212
|
+
Layout/TrailingWhitespace:
|
213
|
+
Enabled: true
|
214
|
+
|
215
|
+
Lint/UnderscorePrefixedVariableName:
|
216
|
+
Enabled: true
|
217
|
+
|
218
|
+
Lint/UselessAccessModifier:
|
219
|
+
Enabled: true
|
220
|
+
|
221
|
+
Metrics/AbcSize:
|
222
|
+
Enabled: true
|
223
|
+
Max: 80
|
224
|
+
|
225
|
+
Metrics/BlockLength:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Mtrics/BlockNesting:
|
229
|
+
Enabled: true
|
230
|
+
Max: 3
|
231
|
+
|
232
|
+
Metrics/ClassLength:
|
233
|
+
Enabled: true
|
234
|
+
Max: 160
|
235
|
+
|
236
|
+
Metrics/CyclomaticComplexity:
|
237
|
+
Enabled: true
|
238
|
+
Max: 10
|
239
|
+
|
240
|
+
Style/CommentAnnotation:
|
241
|
+
Enabled: true
|
242
|
+
|
243
|
+
Layout/CommentIndentation:
|
244
|
+
Enabled: true
|
245
|
+
|
246
|
+
Style/PreferredHashMethods:
|
247
|
+
Enabled: true
|
248
|
+
|
249
|
+
Style/Documentation:
|
250
|
+
Enabled: false
|
251
|
+
|
252
|
+
Layout/DotPosition:
|
253
|
+
Enabled: true
|
254
|
+
|
255
|
+
Lint/AmbiguousOperator:
|
256
|
+
Enabled: true
|
257
|
+
|
258
|
+
Layout/LineLength:
|
259
|
+
Enabled: true
|
260
|
+
Max: 160
|
261
|
+
|
262
|
+
Metrics/MethodLength:
|
263
|
+
Enabled: true
|
264
|
+
Max: 50
|
265
|
+
|
266
|
+
Metrics/ParameterLists:
|
267
|
+
Enabled: true
|
268
|
+
CountKeywordArgs: false
|
269
|
+
|
270
|
+
Metrics/PerceivedComplexity:
|
271
|
+
Enabled: true
|
272
|
+
Max: 12
|
273
|
+
|
274
|
+
Style/Alias:
|
275
|
+
Enabled: true
|
276
|
+
|
277
|
+
Layout/ParameterAlignment:
|
278
|
+
Enabled: false
|
279
|
+
|
280
|
+
Style/AndOr:
|
281
|
+
Enabled: true
|
282
|
+
EnforcedStyle: conditionals
|
283
|
+
|
284
|
+
Style/AsciiComments:
|
285
|
+
Enabled: true
|
286
|
+
|
287
|
+
Style/ClassAndModuleChildren:
|
288
|
+
Enabled: false
|
289
|
+
|
290
|
+
Style/DoubleNegation:
|
291
|
+
Enabled: false
|
292
|
+
|
293
|
+
Layout/EmptyLinesAroundMethodBody:
|
294
|
+
Enabled: false
|
295
|
+
|
296
|
+
Layout/EmptyLinesAroundModuleBody:
|
297
|
+
Enabled: false
|
298
|
+
|
299
|
+
Style/IfUnlessModifier:
|
300
|
+
Enabled: false
|
301
|
+
|
302
|
+
Style/FormatString:
|
303
|
+
Enabled: false
|
304
|
+
|
305
|
+
Layout/FirstArrayElementIndentation:
|
306
|
+
Enabled: true
|
307
|
+
EnforcedStyle: consistent
|
308
|
+
|
309
|
+
Layout/FirstHashElementIndentation:
|
310
|
+
Enabled: true
|
311
|
+
EnforcedStyle: consistent
|
312
|
+
|
313
|
+
Layout/IndentationConsistency:
|
314
|
+
Enabled: true
|
315
|
+
|
316
|
+
Layout/IndentationWidth:
|
317
|
+
Enabled: true
|
318
|
+
|
319
|
+
Style/Lambda:
|
320
|
+
Enabled: true
|
321
|
+
|
322
|
+
Naming/PredicateName:
|
323
|
+
Enabled: false
|
324
|
+
|
325
|
+
Style/RaiseArgs:
|
326
|
+
Enabled: false
|
327
|
+
|
328
|
+
Style/RedundantReturn:
|
329
|
+
Enabled: true
|
330
|
+
|
331
|
+
Style/RegexpLiteral:
|
332
|
+
Enabled: true
|
333
|
+
|
334
|
+
Style/RescueModifier:
|
335
|
+
Enabled: false
|
336
|
+
|
337
|
+
Style/Semicolon:
|
338
|
+
Enabled: true
|
339
|
+
|
340
|
+
Layout/SpaceAfterMethodName:
|
341
|
+
Enabled: true
|
342
|
+
|
343
|
+
Style/SymbolProc:
|
344
|
+
Enabled: true
|
345
|
+
|
346
|
+
Style/TrailingCommaInArrayLiteral:
|
347
|
+
Enabled: true
|
348
|
+
|
349
|
+
Style/TrailingCommaInHashLiteral:
|
350
|
+
Enabled: true
|
351
|
+
|
352
|
+
Style/TrailingCommaInArguments:
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
Style/TrivialAccessors:
|
356
|
+
Enabled: true
|
357
|
+
|
358
|
+
Layout/IndentationStyle:
|
359
|
+
Enabled: true
|
360
|
+
|
361
|
+
Performance/StringReplacement:
|
362
|
+
Enabled: true
|
363
|
+
|
364
|
+
Layout/ExtraSpacing:
|
365
|
+
Enabled: true
|
366
|
+
|
367
|
+
Style/NestedParenthesizedCalls:
|
368
|
+
Enabled: false
|
369
|
+
|
370
|
+
Layout/MultilineMethodCallIndentation:
|
371
|
+
Enabled: false
|
372
|
+
|
373
|
+
Style/ConditionalAssignment:
|
374
|
+
Enabled: true
|
375
|
+
|
376
|
+
Layout/MultilineArrayBraceLayout:
|
377
|
+
Enabled: true
|
378
|
+
|
379
|
+
Style/RedundantParentheses:
|
380
|
+
Enabled: true
|
381
|
+
|
382
|
+
Layout/MultilineMethodCallBraceLayout:
|
383
|
+
Enabled: true
|
384
|
+
|
385
|
+
Layout/MultilineHashBraceLayout:
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
Style/ZeroLengthPredicate:
|
389
|
+
Enabled: true
|
390
|
+
|
391
|
+
Style/RedundantInterpolation:
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
Style/MutableConstant:
|
395
|
+
Enabled: true
|
396
|
+
|
397
|
+
Style/IdenticalConditionalBranches:
|
398
|
+
Enabled: true
|
399
|
+
|
400
|
+
Style/EmptyCaseCondition:
|
401
|
+
Enabled: true
|
402
|
+
|
403
|
+
Style/IfInsideElse:
|
404
|
+
Enabled: true
|
405
|
+
|
406
|
+
Style/FrozenStringLiteralComment:
|
407
|
+
Enabled: false
|
408
|
+
|
409
|
+
Style/TernaryParentheses:
|
410
|
+
Enabled: true
|
411
|
+
EnforcedStyle: require_parentheses_when_complex
|
412
|
+
|
413
|
+
Lint/IneffectiveAccessModifier:
|
414
|
+
Enabled: true
|
415
|
+
|
416
|
+
Performance/StartWith:
|
417
|
+
Enabled: true
|
418
|
+
|
419
|
+
Performance/RedundantMatch:
|
420
|
+
Enabled: true
|
421
|
+
|
422
|
+
Rails:
|
423
|
+
Enabled: true
|
424
|
+
|
425
|
+
Rails/ActionFilter:
|
426
|
+
Enabled: true
|
427
|
+
|
428
|
+
Rails/Date:
|
429
|
+
Enabled: true
|
430
|
+
|
431
|
+
Rails/Delegate:
|
432
|
+
Enabled: true
|
433
|
+
|
434
|
+
Rails/FindBy:
|
435
|
+
Enabled: true
|
436
|
+
|
437
|
+
Rails/FindEach:
|
438
|
+
Enabled: true
|
439
|
+
|
440
|
+
Rails/HasAndBelongsToMany:
|
441
|
+
Enabled: false
|
442
|
+
|
443
|
+
Rails/Output:
|
444
|
+
Enabled: true
|
445
|
+
|
446
|
+
Rails/PluralizationGrammar:
|
447
|
+
Enabled: true
|
448
|
+
|
449
|
+
Rails/ReadWriteAttribute:
|
450
|
+
Enabled: true
|
451
|
+
|
452
|
+
Rails/ScopeArgs:
|
453
|
+
Enabled: true
|
454
|
+
|
455
|
+
Rails/TimeZone:
|
456
|
+
Enabled: true
|
457
|
+
|
458
|
+
Rails/Validation:
|
459
|
+
Enabled: true
|
460
|
+
|
461
|
+
Rails/OutputSafety:
|
462
|
+
Enabled: true
|
463
|
+
|
464
|
+
Rails/UniqBeforePluck:
|
465
|
+
Enabled: false
|
466
|
+
|
467
|
+
Naming/VariableNumber:
|
468
|
+
Enabled: true
|
469
|
+
EnforcedStyle: normalcase
|
470
|
+
|
471
|
+
Style/NumericLiteralPrefix:
|
472
|
+
Enabled: true
|
473
|
+
|
474
|
+
RSpec/BeEql:
|
475
|
+
Enabled: true
|
476
|
+
|
477
|
+
RSpec/DescribeClass:
|
478
|
+
Enabled: true
|
479
|
+
|
480
|
+
RSpec/DescribeSymbol:
|
481
|
+
Enabled: true
|
482
|
+
|
483
|
+
RSpec/DescribedClass:
|
484
|
+
Enabled: true
|
485
|
+
|
486
|
+
RSpec/EmptyExampleGroup:
|
487
|
+
Enabled: false
|
488
|
+
|
489
|
+
Style/EmptyMethod:
|
490
|
+
Enabled: true
|
491
|
+
EnforcedStyle: expanded
|
492
|
+
|
493
|
+
Style/MultilineIfModifier:
|
494
|
+
Enabled: true
|
495
|
+
|
496
|
+
Layout/SpaceInLambdaLiteral:
|
497
|
+
Enabled: true
|
498
|
+
|
499
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
500
|
+
Enabled: true
|
501
|
+
|
502
|
+
Style/MultilineMemoization:
|
503
|
+
Enabled: true
|
504
|
+
|
505
|
+
Rails/DynamicFindBy:
|
506
|
+
Enabled: true
|
507
|
+
|
508
|
+
Rails/HttpPositionalArguments:
|
509
|
+
Enabled: true
|
510
|
+
|
511
|
+
Lint/EnsureReturn:
|
512
|
+
Enabled: true
|
513
|
+
|
514
|
+
Lint/AmbiguousBlockAssociation:
|
515
|
+
Enabled: false
|
516
|
+
|
517
|
+
Rails/Blank:
|
518
|
+
Enabled: true
|
519
|
+
|
520
|
+
Style/SymbolArray:
|
521
|
+
Enabled: true
|
522
|
+
|
523
|
+
Style/InverseMethods:
|
524
|
+
Enabled: true
|
525
|
+
|
526
|
+
Style/MixinGrouping:
|
527
|
+
Enabled: true
|
528
|
+
|
529
|
+
Layout/EmptyLineAfterMagicComment:
|
530
|
+
Enabled: true
|
531
|
+
|
532
|
+
RSpec/EmptyLineAfterSubject:
|
533
|
+
Enabled: true
|
534
|
+
Exclude:
|
535
|
+
- spec/models/siebel/activity_spec.rb
|
536
|
+
|
537
|
+
RSpec/FilePath:
|
538
|
+
Enabled: true
|
539
|
+
|
540
|
+
Rails/InverseOf:
|
541
|
+
Enabled: true
|
542
|
+
|
543
|
+
Rails/Present:
|
544
|
+
Enabled: true
|
545
|
+
|
546
|
+
Naming/FileName:
|
547
|
+
Enabled: true
|
548
|
+
Exclude:
|
549
|
+
- Guardfile
|
550
|
+
|
551
|
+
Style/PercentLiteralDelimiters:
|
552
|
+
Enabled: true
|
553
|
+
|
554
|
+
RSpec/ExampleWording:
|
555
|
+
Enabled: true
|
556
|
+
|
557
|
+
RSpec/EmptyLineAfterFinalLet:
|
558
|
+
Enabled: true
|
559
|
+
|
560
|
+
RSpec/ExampleLength:
|
561
|
+
Enabled: true
|
562
|
+
Max: 16
|
563
|
+
Exclude:
|
564
|
+
- spec/features/**/*
|
565
|
+
|
566
|
+
RSpec/AnyInstance:
|
567
|
+
Enabled: false
|
568
|
+
|
569
|
+
RSpec/PredicateMatcher:
|
570
|
+
Enabled: false
|
571
|
+
|
572
|
+
RSpec/RepeatedDescription:
|
573
|
+
Enabled: pending
|
574
|
+
|
575
|
+
RSpec/RepeatedExampleGroupBody:
|
576
|
+
Enabled: pending
|
577
|
+
|
578
|
+
RSpec/RepeatedExampleGroupDescription:
|
579
|
+
Enabled: pendinge
|
@@ -0,0 +1,26 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'vehiculum/codestyle/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'vehiculum-codestyle'
|
7
|
+
spec.version = Vehiculum::Codestyle::VERSION
|
8
|
+
spec.licenses = ['MIT']
|
9
|
+
spec.authors = ['Vehiculum Tech Team']
|
10
|
+
spec.email = ['tech-services@vehiculum.de']
|
11
|
+
|
12
|
+
spec.summary = 'Vehiculum style guides and shared style configs.'
|
13
|
+
spec.homepage = 'https://github.com/vehiculum-berlin/vehiculum-codestyle'
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_dependency 'rubocop', '0.82.0'
|
21
|
+
spec.add_dependency 'rubocop-performance', '1.5.2'
|
22
|
+
spec.add_dependency 'rubocop-rails', '2.5.2'
|
23
|
+
spec.add_dependency 'rubocop-rspec', '1.39.0'
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
25
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vehiculum-codestyle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vehiculum Tech Team
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.82.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.82.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.5.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.5.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.5.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.39.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.39.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.15'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.15'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '12.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '12.3'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- tech-services@vehiculum.de
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".github/workflows/gem-push.yml"
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rubocop.yml"
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- default.yml
|
112
|
+
- lib/vehiculum/codestyle.rb
|
113
|
+
- lib/vehiculum/codestyle/version.rb
|
114
|
+
- vehiculum-codestyle.gemspec
|
115
|
+
homepage: https://github.com/vehiculum-berlin/vehiculum-codestyle
|
116
|
+
licenses:
|
117
|
+
- MIT
|
118
|
+
metadata: {}
|
119
|
+
post_install_message:
|
120
|
+
rdoc_options: []
|
121
|
+
require_paths:
|
122
|
+
- lib
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
requirements: []
|
134
|
+
rubygems_version: 3.0.3
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: Vehiculum style guides and shared style configs.
|
138
|
+
test_files: []
|