the_bath_of_zahn 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/internal/rails_style_guide.yml +6 -0
- data/config/internal/style_guide.yml +143 -96
- data/the_bath_of_zahn.gemspec +2 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acda177c60b4c86ba25839d494e7a9d73e4fafc6
|
4
|
+
data.tar.gz: 7e18fd127ddd1152acf891a88e366c3c5c642661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fea548e6578121b7e3de6f1941431c694e112d0764e9d8394de6e670b7876b3e3e29c51c7cdecee2a572ebb007217e0d41df4b63aa95020e66274699fbca994
|
7
|
+
data.tar.gz: 2e6369768adc7c8a777baf710fdb7791d154f116b1b9185ff8269269ce824816c8819a67b10aac9da586777795c065e306430e0c88bc196a759be1b0d7900974
|
@@ -23,6 +23,12 @@ Rails/HasAndBelongsToMany:
|
|
23
23
|
Enabled: true
|
24
24
|
Include:
|
25
25
|
- app/models/**/*.rb
|
26
|
+
Rails/HasManyOrHasOneDependent:
|
27
|
+
Description: Define the dependent option to the has_many and has_one associations.
|
28
|
+
StyleGuide: https://github.com/bbatsov/rails-style-guide#has_many-has_one-dependent-option
|
29
|
+
Enabled: true
|
30
|
+
Include:
|
31
|
+
- app/models/**/*.rb
|
26
32
|
Rails/ReadWriteAttribute:
|
27
33
|
Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
|
28
34
|
StyleGuide: https://github.com/bbatsov/rails-style-guide#read-attribute
|
@@ -207,6 +207,7 @@ Layout/Tab:
|
|
207
207
|
Description: No hard tabs.
|
208
208
|
StyleGuide: "#spaces-indentation"
|
209
209
|
Enabled: true
|
210
|
+
IndentationWidth:
|
210
211
|
Layout/TrailingBlankLines:
|
211
212
|
Description: Checks trailing blank lines and final newline.
|
212
213
|
StyleGuide: "#newline-eof"
|
@@ -219,10 +220,125 @@ Layout/TrailingWhitespace:
|
|
219
220
|
Description: Avoid trailing whitespace.
|
220
221
|
StyleGuide: "#no-trailing-whitespace"
|
221
222
|
Enabled: true
|
222
|
-
|
223
|
+
Naming/AccessorMethodName:
|
223
224
|
Description: Check the naming of accessor methods for get_/set_.
|
224
225
|
StyleGuide: "#accessor_mutator_method_names"
|
225
226
|
Enabled: true
|
227
|
+
Naming/AsciiIdentifiers:
|
228
|
+
Description: Use only ascii symbols in identifiers.
|
229
|
+
StyleGuide: "#english-identifiers"
|
230
|
+
Enabled: true
|
231
|
+
Naming/ClassAndModuleCamelCase:
|
232
|
+
Description: Use CamelCase for classes and modules.
|
233
|
+
StyleGuide: "#camelcase-classes"
|
234
|
+
Enabled: true
|
235
|
+
Naming/ConstantName:
|
236
|
+
Description: Constants should use SCREAMING_SNAKE_CASE.
|
237
|
+
StyleGuide: "#screaming-snake-case"
|
238
|
+
Enabled: true
|
239
|
+
Naming/FileName:
|
240
|
+
Description: Use snake_case for source file names.
|
241
|
+
StyleGuide: "#snake-case-files"
|
242
|
+
Enabled: true
|
243
|
+
Exclude: []
|
244
|
+
ExpectMatchingDefinition: false
|
245
|
+
Regex:
|
246
|
+
IgnoreExecutableScripts: true
|
247
|
+
AllowedAcronyms:
|
248
|
+
- CLI
|
249
|
+
- DSL
|
250
|
+
- ACL
|
251
|
+
- API
|
252
|
+
- ASCII
|
253
|
+
- CPU
|
254
|
+
- CSS
|
255
|
+
- DNS
|
256
|
+
- EOF
|
257
|
+
- GUID
|
258
|
+
- HTML
|
259
|
+
- HTTP
|
260
|
+
- HTTPS
|
261
|
+
- ID
|
262
|
+
- IP
|
263
|
+
- JSON
|
264
|
+
- LHS
|
265
|
+
- QPS
|
266
|
+
- RAM
|
267
|
+
- RHS
|
268
|
+
- RPC
|
269
|
+
- SLA
|
270
|
+
- SMTP
|
271
|
+
- SQL
|
272
|
+
- SSH
|
273
|
+
- TCP
|
274
|
+
- TLS
|
275
|
+
- TTL
|
276
|
+
- UDP
|
277
|
+
- UI
|
278
|
+
- UID
|
279
|
+
- UUID
|
280
|
+
- URI
|
281
|
+
- URL
|
282
|
+
- UTF8
|
283
|
+
- VM
|
284
|
+
- XML
|
285
|
+
- XMPP
|
286
|
+
- XSRF
|
287
|
+
- XSS
|
288
|
+
Naming/HeredocDelimiterCase:
|
289
|
+
Description: Use configured case for heredoc delimiters.
|
290
|
+
StyleGuide: "#heredoc-delimiters"
|
291
|
+
Enabled: true
|
292
|
+
EnforcedStyle: uppercase
|
293
|
+
SupportedStyles:
|
294
|
+
- lowercase
|
295
|
+
- uppercase
|
296
|
+
Naming/HeredocDelimiterNaming:
|
297
|
+
Description: Use descriptive heredoc delimiters.
|
298
|
+
StyleGuide: "#heredoc-delimiters"
|
299
|
+
Enabled: true
|
300
|
+
Blacklist:
|
301
|
+
- END
|
302
|
+
- !ruby/regexp /EO[A-Z]{1}/
|
303
|
+
Naming/MethodName:
|
304
|
+
Description: Use the configured style when naming methods.
|
305
|
+
StyleGuide: "#snake-case-symbols-methods-vars"
|
306
|
+
Enabled: true
|
307
|
+
EnforcedStyle: snake_case
|
308
|
+
SupportedStyles:
|
309
|
+
- snake_case
|
310
|
+
- camelCase
|
311
|
+
Naming/PredicateName:
|
312
|
+
Description: Check the names of predicate methods.
|
313
|
+
StyleGuide: "#bool-methods-qmark"
|
314
|
+
Enabled: true
|
315
|
+
NamePrefix:
|
316
|
+
- is_
|
317
|
+
- has_
|
318
|
+
- have_
|
319
|
+
NamePrefixBlacklist:
|
320
|
+
- is_
|
321
|
+
- has_
|
322
|
+
- have_
|
323
|
+
NameWhitelist:
|
324
|
+
- is_a?
|
325
|
+
MethodDefinitionMacros:
|
326
|
+
- define_method
|
327
|
+
- define_singleton_method
|
328
|
+
Exclude:
|
329
|
+
- spec/**/*
|
330
|
+
Naming/BinaryOperatorParameterName:
|
331
|
+
Description: When defining binary operators, name the argument other.
|
332
|
+
StyleGuide: "#other-arg"
|
333
|
+
Enabled: true
|
334
|
+
Naming/VariableName:
|
335
|
+
Description: Use the configured style when naming variables.
|
336
|
+
StyleGuide: "#snake-case-symbols-methods-vars"
|
337
|
+
Enabled: true
|
338
|
+
EnforcedStyle: snake_case
|
339
|
+
SupportedStyles:
|
340
|
+
- snake_case
|
341
|
+
- camelCase
|
226
342
|
Style/Alias:
|
227
343
|
Description: Use alias instead of alias_method.
|
228
344
|
StyleGuide: "#alias-method"
|
@@ -247,10 +363,6 @@ Style/AsciiComments:
|
|
247
363
|
Description: Use only ascii symbols in comments.
|
248
364
|
StyleGuide: "#english-comments"
|
249
365
|
Enabled: true
|
250
|
-
Style/AsciiIdentifiers:
|
251
|
-
Description: Use only ascii symbols in identifiers.
|
252
|
-
StyleGuide: "#english-identifiers"
|
253
|
-
Enabled: true
|
254
366
|
Style/Attr:
|
255
367
|
Description: Checks for uses of Module#attr.
|
256
368
|
StyleGuide: "#attr"
|
@@ -309,10 +421,14 @@ Style/CharacterLiteral:
|
|
309
421
|
Description: Checks for uses of character literals.
|
310
422
|
StyleGuide: "#no-character-literals"
|
311
423
|
Enabled: true
|
312
|
-
Style/
|
313
|
-
Description:
|
314
|
-
StyleGuide: "#
|
424
|
+
Style/ClassAndModuleChildren:
|
425
|
+
Description: Checks style of children classes and modules.
|
426
|
+
StyleGuide: "#namespace-definition"
|
315
427
|
Enabled: true
|
428
|
+
EnforcedStyle: nested
|
429
|
+
SupportedStyles:
|
430
|
+
- nested
|
431
|
+
- compact
|
316
432
|
Style/ClassMethods:
|
317
433
|
Description: Use self when defining module/class methods.
|
318
434
|
StyleGuide: "#def-self-class-methods"
|
@@ -346,9 +462,9 @@ Style/CommentAnnotation:
|
|
346
462
|
- OPTIMIZE
|
347
463
|
- HACK
|
348
464
|
- REVIEW
|
349
|
-
Style/
|
350
|
-
Description:
|
351
|
-
StyleGuide: "#
|
465
|
+
Style/DateTime:
|
466
|
+
Description: Use Date or Time over DateTime.
|
467
|
+
StyleGuide: "#date--time"
|
352
468
|
Enabled: true
|
353
469
|
Style/DefWithParentheses:
|
354
470
|
Description: Use def with parentheses when there are arguments.
|
@@ -374,59 +490,14 @@ Style/EndBlock:
|
|
374
490
|
Description: Avoid the use of END blocks.
|
375
491
|
StyleGuide: "#no-END-blocks"
|
376
492
|
Enabled: true
|
493
|
+
Style/Encoding:
|
494
|
+
Description: Use UTF-8 as the source file encoding.
|
495
|
+
StyleGuide: "#utf-8"
|
496
|
+
Enabled: true
|
377
497
|
Style/EvenOdd:
|
378
498
|
Description: Favor the use of Integer#even? && Integer#odd?
|
379
499
|
StyleGuide: "#predicate-methods"
|
380
500
|
Enabled: true
|
381
|
-
Style/FileName:
|
382
|
-
Description: Use snake_case for source file names.
|
383
|
-
StyleGuide: "#snake-case-files"
|
384
|
-
Enabled: true
|
385
|
-
Exclude: []
|
386
|
-
ExpectMatchingDefinition: false
|
387
|
-
Regex:
|
388
|
-
IgnoreExecutableScripts: true
|
389
|
-
AllowedAcronyms:
|
390
|
-
- CLI
|
391
|
-
- DSL
|
392
|
-
- ACL
|
393
|
-
- API
|
394
|
-
- ASCII
|
395
|
-
- CPU
|
396
|
-
- CSS
|
397
|
-
- DNS
|
398
|
-
- EOF
|
399
|
-
- GUID
|
400
|
-
- HTML
|
401
|
-
- HTTP
|
402
|
-
- HTTPS
|
403
|
-
- ID
|
404
|
-
- IP
|
405
|
-
- JSON
|
406
|
-
- LHS
|
407
|
-
- QPS
|
408
|
-
- RAM
|
409
|
-
- RHS
|
410
|
-
- RPC
|
411
|
-
- SLA
|
412
|
-
- SMTP
|
413
|
-
- SQL
|
414
|
-
- SSH
|
415
|
-
- TCP
|
416
|
-
- TLS
|
417
|
-
- TTL
|
418
|
-
- UDP
|
419
|
-
- UI
|
420
|
-
- UID
|
421
|
-
- UUID
|
422
|
-
- URI
|
423
|
-
- URL
|
424
|
-
- UTF8
|
425
|
-
- VM
|
426
|
-
- XML
|
427
|
-
- XMPP
|
428
|
-
- XSRF
|
429
|
-
- XSS
|
430
501
|
Style/FlipFlop:
|
431
502
|
Description: Checks for flip flops
|
432
503
|
StyleGuide: "#no-flip-flops"
|
@@ -515,14 +586,6 @@ Style/MethodDefParentheses:
|
|
515
586
|
- require_parentheses
|
516
587
|
- require_no_parentheses
|
517
588
|
- require_no_parentheses_except_multiline
|
518
|
-
Style/MethodName:
|
519
|
-
Description: Use the configured style when naming methods.
|
520
|
-
StyleGuide: "#snake-case-symbols-methods-vars"
|
521
|
-
Enabled: true
|
522
|
-
EnforcedStyle: snake_case
|
523
|
-
SupportedStyles:
|
524
|
-
- snake_case
|
525
|
-
- camelCase
|
526
589
|
Style/MethodMissing:
|
527
590
|
Description: Avoid using `method_missing`.
|
528
591
|
StyleGuide: "#no-method-missing"
|
@@ -632,15 +695,15 @@ Style/OneLineConditional:
|
|
632
695
|
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
633
696
|
StyleGuide: "#ternary-operator"
|
634
697
|
Enabled: true
|
635
|
-
Style/OpMethod:
|
636
|
-
Description: When defining binary operators, name the argument other.
|
637
|
-
StyleGuide: "#other-arg"
|
638
|
-
Enabled: true
|
639
698
|
Style/OptionalArguments:
|
640
699
|
Description: Checks for optional arguments that do not appear at the end of the
|
641
700
|
argument list
|
642
701
|
StyleGuide: "#optional-arguments"
|
643
702
|
Enabled: true
|
703
|
+
Style/OrAssignment:
|
704
|
+
Description: Recommend usage of double pipe equals (||=) where applicable.
|
705
|
+
StyleGuide: "#double-pipe-for-uninit"
|
706
|
+
Enabled: true
|
644
707
|
Style/ParallelAssignment:
|
645
708
|
Description: Check for simple usages of parallel assignment. It will only warn when
|
646
709
|
the number of variables matches on both sides of the assignment.
|
@@ -666,22 +729,6 @@ Style/PerlBackrefs:
|
|
666
729
|
Description: Avoid Perl-style regex back references.
|
667
730
|
StyleGuide: "#no-perl-regexp-last-matchers"
|
668
731
|
Enabled: true
|
669
|
-
Style/PredicateName:
|
670
|
-
Description: Check the names of predicate methods.
|
671
|
-
StyleGuide: "#bool-methods-qmark"
|
672
|
-
Enabled: true
|
673
|
-
NamePrefix:
|
674
|
-
- is_
|
675
|
-
- has_
|
676
|
-
- have_
|
677
|
-
NamePrefixBlacklist:
|
678
|
-
- is_
|
679
|
-
- has_
|
680
|
-
- have_
|
681
|
-
NameWhitelist:
|
682
|
-
- is_a?
|
683
|
-
Exclude:
|
684
|
-
- spec/**/*
|
685
732
|
Style/PreferredHashMethods:
|
686
733
|
Description: Checks use of `has_key?` and `has_value?` Hash methods.
|
687
734
|
StyleGuide: "#hash-key"
|
@@ -773,6 +820,10 @@ Style/StabbyLambdaParentheses:
|
|
773
820
|
SupportedStyles:
|
774
821
|
- require_parentheses
|
775
822
|
- require_no_parentheses
|
823
|
+
Style/StderrPuts:
|
824
|
+
Description: Use `warn` instead of `$stderr.puts`.
|
825
|
+
StyleGuide: "#warn"
|
826
|
+
Enabled: true
|
776
827
|
Style/StringLiterals:
|
777
828
|
Description: Checks if uses of quotes match the configured preference.
|
778
829
|
StyleGuide: "#consistent-string-literals"
|
@@ -852,14 +903,6 @@ Style/VariableInterpolation:
|
|
852
903
|
strings.
|
853
904
|
StyleGuide: "#curlies-interpolate"
|
854
905
|
Enabled: true
|
855
|
-
Style/VariableName:
|
856
|
-
Description: Use the configured style when naming variables.
|
857
|
-
StyleGuide: "#snake-case-symbols-methods-vars"
|
858
|
-
Enabled: true
|
859
|
-
EnforcedStyle: snake_case
|
860
|
-
SupportedStyles:
|
861
|
-
- snake_case
|
862
|
-
- camelCase
|
863
906
|
Style/WhenThen:
|
864
907
|
Description: Use when x then ... for one-line cases.
|
865
908
|
StyleGuide: "#one-line-cases"
|
@@ -958,6 +1001,10 @@ Lint/RescueException:
|
|
958
1001
|
Description: Avoid rescuing the Exception class.
|
959
1002
|
StyleGuide: "#no-blind-rescues"
|
960
1003
|
Enabled: true
|
1004
|
+
Lint/RescueWithoutErrorClass:
|
1005
|
+
Description: Avoid rescuing without specifying an error class.
|
1006
|
+
StyleGuide: "#no-blind-rescues"
|
1007
|
+
Enabled: true
|
961
1008
|
Lint/StringConversionInInterpolation:
|
962
1009
|
Description: Checks for Object#to_s usage in string interpolation.
|
963
1010
|
StyleGuide: "#no-to-s"
|
data/the_bath_of_zahn.gemspec
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
1
|
Gem::Specification.new do |spec|
|
4
2
|
spec.name = "the_bath_of_zahn"
|
5
|
-
spec.version = "0.0.
|
3
|
+
spec.version = "0.0.4"
|
6
4
|
spec.authors = ["Zach Ahn"]
|
7
5
|
spec.email = ["engineering@zachahn.com"]
|
8
6
|
|
@@ -21,5 +19,5 @@ Gem::Specification.new do |spec|
|
|
21
19
|
spec.add_development_dependency "bundler", "~> 1.15"
|
22
20
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
21
|
spec.add_development_dependency "minitest", "~> 5.0"
|
24
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
22
|
+
spec.add_development_dependency "rubocop", "~> 0.51"
|
25
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_bath_of_zahn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Ahn
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.51'
|
62
62
|
type: :development
|
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: '0.
|
68
|
+
version: '0.51'
|
69
69
|
description: These are some Rubocop configs that I use in my new personal projects
|
70
70
|
email:
|
71
71
|
- engineering@zachahn.com
|