php-composer 0.4.5 → 1.0.0.pre.alpha11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.rbenv-gemsets +1 -0
  3. data/.rubocop.yml +131 -188
  4. data/.ruby-version +1 -0
  5. data/Gemfile +0 -9
  6. data/Rakefile +11 -0
  7. data/lib/composer.rb +52 -49
  8. data/lib/composer/json/json_file.rb +110 -83
  9. data/lib/composer/json/json_formatter.rb +43 -77
  10. data/lib/composer/json/{json_validaton_error.rb → json_validation_error.rb} +6 -2
  11. data/lib/composer/package/alias_package.rb +77 -61
  12. data/lib/composer/package/complete_package.rb +88 -18
  13. data/lib/composer/package/dumper/hash_dumper.rb +50 -118
  14. data/lib/composer/package/dumper/hash_dumper/complete_package_attribute_dumpers.rb +47 -0
  15. data/lib/composer/package/dumper/hash_dumper/package_attribute_dumpers.rb +145 -0
  16. data/lib/composer/package/dumper/hash_dumper/root_package_attribute_dumpers.rb +24 -0
  17. data/lib/composer/package/link.rb +15 -5
  18. data/lib/composer/package/loader/hash_loader.rb +92 -228
  19. data/lib/composer/package/loader/hash_loader/complete_package_attribute_loaders.rb +83 -0
  20. data/lib/composer/package/loader/hash_loader/package_attribute_loaders.rb +181 -0
  21. data/lib/composer/package/loader/hash_loader/root_package_attribute_loaders.rb +32 -0
  22. data/lib/composer/package/loader/json_loader.rb +7 -9
  23. data/lib/composer/package/package.rb +611 -43
  24. data/lib/composer/package/root_alias_package.rb +186 -15
  25. data/lib/composer/package/root_package.rb +12 -4
  26. data/lib/composer/package/version/version_parser.rb +16 -532
  27. data/lib/composer/package/version/version_selector.rb +127 -68
  28. data/lib/composer/repository/base_repository.rb +46 -3
  29. data/lib/composer/repository/composite_repository.rb +4 -4
  30. data/lib/composer/repository/filesystem_repository.rb +15 -8
  31. data/lib/composer/repository/hash_repository.rb +62 -45
  32. data/lib/composer/repository/writeable_hash_repository.rb +5 -5
  33. data/lib/composer/util/composer_mirror.rb +76 -0
  34. data/php-composer.gemspec +14 -8
  35. data/resources/composer-schema.json +12 -0
  36. metadata +117 -16
  37. data/lib/composer/error.rb +0 -8
  38. data/lib/composer/package/base_package.rb +0 -130
  39. data/lib/composer/package/link_constraint/base_constraint.rb +0 -36
  40. data/lib/composer/package/link_constraint/empty_constraint.rb +0 -35
  41. data/lib/composer/package/link_constraint/multi_constraint.rb +0 -67
  42. data/lib/composer/package/link_constraint/specific_constraint.rb +0 -41
  43. data/lib/composer/package/link_constraint/version_constraint.rb +0 -221
  44. data/lib/composer/version.rb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47d77171dc28401539a9ae562a9fc12475092144
4
- data.tar.gz: 98cae5ea6ff3d3e9c436d005ce6b1332491e42d8
3
+ metadata.gz: 9e6f30b822bb069f38ac2e445ecd2016f5bb4ab7
4
+ data.tar.gz: 1bb1356ff5cc45d4684ff35ba1c23148e1aa998f
5
5
  SHA512:
6
- metadata.gz: 1bdef22afac0256a0f705d3a7b31d67ec774e88c2c4e13b5d0d11c73aa547d7cbab905d6cd12fa14d804a93f8ee09c4db40af50622a41b63b821b1a1fa2265e6
7
- data.tar.gz: cf52479e47bc93498fd0d3a1b6b0f2f81fb80d26e286672ffacae8c8c4d313c97a8d1cba7a8059d03f8a04328f2c8932afacc0c1911310cb7950ac8cb23e55a3
6
+ metadata.gz: 6ed56037aefb1f8aec21e90a5eb2c5ab81bd128bc2666939ff3110fbc1976248cf44f4745605818b57fb8951d4a10508dd1949dad422cc312fdef2399ff734d6
7
+ data.tar.gz: 69e9b7ebf5cb3d90b9b5dd16d74e8060bb7fb158d55e7d8d2028fd230fc83feeed1702be3b082f27b959b5cd18c56a0b44ac7ac01e7af5558ac4b5dac9780343
@@ -0,0 +1 @@
1
+ -global
@@ -1,3 +1,6 @@
1
+ require: rubocop-rspec
2
+
3
+ # Style Cops
1
4
  Style/AccessModifierIndentation:
2
5
  Description: Check indentation of private/protected visibility modifiers.
3
6
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
@@ -13,22 +16,22 @@ Style/Alias:
13
16
  Enabled: true
14
17
 
15
18
  Style/AlignArray:
16
- Description: >-
17
- Align the elements of an array literal if they span more than
18
- one line.
19
+ Description: |
20
+ Align the elements of an array literal if they span more than
21
+ one line.
19
22
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
20
23
  Enabled: true
21
24
 
22
25
  Style/AlignHash:
23
- Description: >-
24
- Align the elements of a hash literal if they span more than
25
- one line.
26
+ Description: |
27
+ Align the elements of a hash literal if they span more than
28
+ one line.
26
29
  Enabled: true
27
30
 
28
31
  Style/AlignParameters:
29
- Description: >-
30
- Align the parameters of a method call if they span more
31
- than one line.
32
+ Description: |
33
+ Align the parameters of a method call if they span more
34
+ than one line.
32
35
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
33
36
  Enabled: false
34
37
 
@@ -76,11 +79,11 @@ Style/BlockEndNewline:
76
79
  Description: 'Put end statement of multiline block on its own line.'
77
80
  Enabled: true
78
81
 
79
- Style/Blocks:
80
- Description: >-
81
- Avoid using {...} for multi-line blocks (multiline chaining is
82
- always ugly).
83
- Prefer {...} over do...end for single-line blocks.
82
+ Style/BlockDelimiters:
83
+ Description: |
84
+ Avoid using {...} for multi-line blocks (multiline chaining is
85
+ always ugly).
86
+ Prefer {...} over do...end for single-line blocks.
84
87
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
85
88
  Enabled: true
86
89
 
@@ -132,9 +135,9 @@ Style/ColonMethodCall:
132
135
  Enabled: false
133
136
 
134
137
  Style/CommentAnnotation:
135
- Description: >-
136
- Checks formatting of special comments
137
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
138
+ Description: |
139
+ Checks formatting of special comments
140
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
138
141
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
139
142
  Enabled: false
140
143
 
@@ -263,16 +266,16 @@ Style/GuardClause:
263
266
  Enabled: false
264
267
 
265
268
  Style/HashSyntax:
266
- Description: >-
267
- Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
268
- { :a => 1, :b => 2 }.
269
+ Description: |
270
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
271
+ { :a => 1, :b => 2 }.
269
272
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
270
273
  Enabled: true
271
274
 
272
275
  Style/IfUnlessModifier:
273
- Description: >-
274
- Favor modifier if/unless usage when you have a
275
- single-line body.
276
+ Description: |
277
+ Favor modifier if/unless usage when you have a
278
+ single-line body.
276
279
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
277
280
  Enabled: false
278
281
 
@@ -291,9 +294,9 @@ Style/IndentationWidth:
291
294
  Enabled: true
292
295
 
293
296
  Style/IndentArray:
294
- Description: >-
295
- Checks the indentation of the first element in an array
296
- literal.
297
+ Description: |
298
+ Checks the indentation of the first element in an array
299
+ literal.
297
300
  Enabled: false
298
301
 
299
302
  Style/IndentHash:
@@ -321,9 +324,9 @@ Style/LeadingCommentSpace:
321
324
  Enabled: false
322
325
 
323
326
  Style/LineEndConcatenation:
324
- Description: >-
325
- Use \ instead of + or << to concatenate two string literals at
326
- line end.
327
+ Description: |
328
+ Use \ instead of + or << to concatenate two string literals at
329
+ line end.
327
330
  Enabled: false
328
331
 
329
332
  Style/MethodCallParentheses:
@@ -332,9 +335,9 @@ Style/MethodCallParentheses:
332
335
  Enabled: false
333
336
 
334
337
  Style/MethodDefParentheses:
335
- Description: >-
336
- Checks if the method definitions have or don't have
337
- parentheses.
338
+ Description: |
339
+ Checks if the method definitions have or don't have
340
+ parentheses.
338
341
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
339
342
  Enabled: false
340
343
 
@@ -363,22 +366,22 @@ Style/MultilineIfThen:
363
366
  Enabled: false
364
367
 
365
368
  Style/MultilineOperationIndentation:
366
- Description: >-
367
- Checks indentation of binary operations that span more than
368
- one line.
369
+ Description: |
370
+ Checks indentation of binary operations that span more than
371
+ one line.
369
372
  Enabled: false
370
373
 
371
374
  Style/MultilineTernaryOperator:
372
- Description: >-
373
- Avoid multi-line ?: (the ternary operator);
374
- use if/unless instead.
375
+ Description: |
376
+ Avoid multi-line ?: (the ternary operator);
377
+ use if/unless instead.
375
378
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
376
379
  Enabled: false
377
380
 
378
381
  Style/NegatedIf:
379
- Description: >-
380
- Favor unless over if for negative conditions
381
- (or control flow or).
382
+ Description: |
383
+ Favor unless over if for negative conditions
384
+ (or control flow or).
382
385
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
383
386
  Enabled: false
384
387
 
@@ -413,16 +416,16 @@ Style/Not:
413
416
  Enabled: false
414
417
 
415
418
  Style/NumericLiterals:
416
- Description: >-
417
- Add underscores to large numeric literals to improve their
418
- readability.
419
+ Description: |
420
+ Add underscores to large numeric literals to improve their
421
+ readability.
419
422
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
420
423
  Enabled: false
421
424
 
422
425
  Style/OneLineConditional:
423
- Description: >-
424
- Favor the ternary operator(?:) over
425
- if/then/else/end constructs.
426
+ Description: |
427
+ Favor the ternary operator(?:) over
428
+ if/then/else/end constructs.
426
429
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
427
430
  Enabled: false
428
431
 
@@ -432,9 +435,9 @@ Style/OpMethod:
432
435
  Enabled: false
433
436
 
434
437
  Style/ParenthesesAroundCondition:
435
- Description: >-
436
- Don't use parentheses around the condition of an
437
- if/unless/while.
438
+ Description: |
439
+ Don't use parentheses around the condition of an
440
+ if/unless/while.
438
441
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
439
442
  Enabled: false
440
443
 
@@ -488,11 +491,11 @@ Style/RedundantSelf:
488
491
  Enabled: false
489
492
 
490
493
  Style/RegexpLiteral:
491
- Description: >-
492
- Use %r for regular expressions matching more than
493
- `MaxSlashes` '/' characters.
494
- Use %r only for regular expressions matching more than
495
- `MaxSlashes` '/' character.
494
+ Description: |
495
+ Use %r for regular expressions matching more than
496
+ `MaxSlashes` '/' characters.
497
+ Use %r only for regular expressions matching more than
498
+ `MaxSlashes` '/' character.
496
499
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
497
500
  Enabled: false
498
501
 
@@ -502,9 +505,9 @@ Style/RescueModifier:
502
505
  Enabled: false
503
506
 
504
507
  Style/SelfAssignment:
505
- Description: >-
506
- Checks for places where self-assignment shorthand should have
507
- been used.
508
+ Description: |
509
+ Checks for places where self-assignment shorthand should have
510
+ been used.
508
511
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
509
512
  Enabled: false
510
513
 
@@ -529,9 +532,9 @@ Style/SingleLineMethods:
529
532
  Enabled: false
530
533
 
531
534
  Style/SingleSpaceBeforeFirstArg:
532
- Description: >-
533
- Checks that exactly one space is used between a method name
534
- and the first argument for method calls without parentheses.
535
+ Description: |
536
+ Checks that exactly one space is used between a method name
537
+ and the first argument for method calls without parentheses.
535
538
  Enabled: false
536
539
 
537
540
  Style/SpaceAfterColon:
@@ -549,9 +552,9 @@ Style/SpaceAfterControlKeyword:
549
552
  Enabled: false
550
553
 
551
554
  Style/SpaceAfterMethodName:
552
- Description: >-
553
- Do not put a space between a method name and the opening
554
- parenthesis in a method definition.
555
+ Description: |
556
+ Do not put a space between a method name and the opening
557
+ parenthesis in a method definition.
555
558
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
556
559
  Enabled: false
557
560
 
@@ -566,9 +569,9 @@ Style/SpaceAfterSemicolon:
566
569
  Enabled: false
567
570
 
568
571
  Style/SpaceBeforeBlockBraces:
569
- Description: >-
570
- Checks that the left block brace has or doesn't have space
571
- before it.
572
+ Description: |
573
+ Checks that the left block brace has or doesn't have space
574
+ before it.
572
575
  Enabled: false
573
576
 
574
577
  Style/SpaceBeforeComma:
@@ -576,9 +579,9 @@ Style/SpaceBeforeComma:
576
579
  Enabled: false
577
580
 
578
581
  Style/SpaceBeforeComment:
579
- Description: >-
580
- Checks for missing space between code and a comment on the
581
- same line.
582
+ Description: |
583
+ Checks for missing space between code and a comment on the
584
+ same line.
582
585
  Enabled: false
583
586
 
584
587
  Style/SpaceBeforeSemicolon:
@@ -586,17 +589,17 @@ Style/SpaceBeforeSemicolon:
586
589
  Enabled: false
587
590
 
588
591
  Style/SpaceInsideBlockBraces:
589
- Description: >-
590
- Checks that block braces have or don't have surrounding space.
591
- For blocks taking parameters, checks that the left brace has
592
- or doesn't have trailing space.
592
+ Description: |
593
+ Checks that block braces have or don't have surrounding space.
594
+ For blocks taking parameters, checks that the left brace has
595
+ or doesn't have trailing space.
593
596
  Enabled: false
594
597
 
595
598
  Style/SpaceAroundEqualsInParameterDefault:
596
- Description: >-
597
- Checks that the equals signs in parameter default assignments
598
- have or don't have surrounding space depending on
599
- configuration.
599
+ Description: |
600
+ Checks that the equals signs in parameter default assignments
601
+ have or don't have surrounding space depending on
602
+ configuration.
600
603
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
601
604
  Enabled: false
602
605
 
@@ -640,9 +643,9 @@ Style/StringLiterals:
640
643
  Enabled: false
641
644
 
642
645
  Style/StringLiteralsInInterpolation:
643
- Description: >-
644
- Checks if uses of quotes inside expressions in interpolated
645
- strings match the configured preference.
646
+ Description: |
647
+ Checks if uses of quotes inside expressions in interpolated
648
+ strings match the configured preference.
646
649
  Enabled: false
647
650
 
648
651
  Style/SymbolProc:
@@ -675,9 +678,9 @@ Style/TrivialAccessors:
675
678
  Enabled: false
676
679
 
677
680
  Style/UnlessElse:
678
- Description: >-
679
- Do not use unless with else. Rewrite these with the positive
680
- case first.
681
+ Description: |
682
+ Do not use unless with else. Rewrite these with the positive
683
+ case first.
681
684
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
682
685
  Enabled: false
683
686
 
@@ -690,15 +693,10 @@ Style/UnneededPercentQ:
690
693
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
691
694
  Enabled: false
692
695
 
693
- Style/UnneededPercentX:
694
- Description: 'Checks for %x when `` would do.'
695
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
696
- Enabled: false
697
-
698
696
  Style/VariableInterpolation:
699
- Description: >-
700
- Don't interpolate global, instance and class variables
701
- directly in strings.
697
+ Description: |
698
+ Don't interpolate global, instance and class variables
699
+ directly in strings.
702
700
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
703
701
  Enabled: false
704
702
 
@@ -718,9 +716,9 @@ Style/WhileUntilDo:
718
716
  Enabled: false
719
717
 
720
718
  Style/WhileUntilModifier:
721
- Description: >-
722
- Favor modifier while/until usage when you have a
723
- single-line body.
719
+ Description: |
720
+ Favor modifier while/until usage when you have a
721
+ single-line body.
724
722
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
725
723
  Enabled: false
726
724
 
@@ -729,12 +727,12 @@ Style/WordArray:
729
727
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
730
728
  Enabled: false
731
729
 
732
- #################### Metrics ################################
730
+ # Metrics Cops
733
731
 
734
732
  Metrics/AbcSize:
735
- Description: >-
736
- A calculated magnitude based on number of assignments,
737
- branches, and conditions.
733
+ Description: |
734
+ A calculated magnitude based on number of assignments,
735
+ branches, and conditions.
738
736
  Enabled: false
739
737
 
740
738
  Metrics/BlockNesting:
@@ -747,9 +745,9 @@ Metrics/ClassLength:
747
745
  Enabled: false
748
746
 
749
747
  Metrics/CyclomaticComplexity:
750
- Description: >-
751
- A complexity metric that is strongly correlated to the number
752
- of test cases needed to validate a method.
748
+ Description: |
749
+ A complexity metric that is strongly correlated to the number
750
+ of test cases needed to validate a method.
753
751
  Enabled: false
754
752
 
755
753
  Metrics/LineLength:
@@ -768,25 +766,24 @@ Metrics/ParameterLists:
768
766
  Enabled: false
769
767
 
770
768
  Metrics/PerceivedComplexity:
771
- Description: >-
772
- A complexity metric geared towards measuring complexity for a
773
- human reader.
769
+ Description: |
770
+ A complexity metric geared towards measuring complexity for a
771
+ human reader.
774
772
  Enabled: false
775
773
 
776
- #################### Lint ################################
777
- ### Warnings
774
+ # Linting Cops
778
775
 
779
776
  Lint/AmbiguousOperator:
780
- Description: >-
781
- Checks for ambiguous operators in the first argument of a
782
- method invocation without parentheses.
777
+ Description: |
778
+ Checks for ambiguous operators in the first argument of a
779
+ method invocation without parentheses.
783
780
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
784
781
  Enabled: false
785
782
 
786
783
  Lint/AmbiguousRegexpLiteral:
787
- Description: >-
788
- Checks for ambiguous regexp literals in the first argument of
789
- a method invocation without parenthesis.
784
+ Description: |
785
+ Checks for ambiguous regexp literals in the first argument of
786
+ a method invocation without parenthesis.
790
787
  Enabled: false
791
788
 
792
789
  Lint/AssignmentInCondition:
@@ -799,9 +796,9 @@ Lint/BlockAlignment:
799
796
  Enabled: false
800
797
 
801
798
  Lint/ConditionPosition:
802
- Description: >-
803
- Checks for condition placed in a confusing position relative to
804
- the keyword.
799
+ Description: |
800
+ Checks for condition placed in a confusing position relative to
801
+ the keyword.
805
802
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
806
803
  Enabled: false
807
804
 
@@ -852,9 +849,9 @@ Lint/HandleExceptions:
852
849
  Enabled: false
853
850
 
854
851
  Lint/InvalidCharacterLiteral:
855
- Description: >-
856
- Checks for invalid character literals with a non-escaped
857
- whitespace character.
852
+ Description: |
853
+ Checks for invalid character literals with a non-escaped
854
+ whitespace character.
858
855
  Enabled: false
859
856
 
860
857
  Lint/LiteralInCondition:
@@ -866,23 +863,23 @@ Lint/LiteralInInterpolation:
866
863
  Enabled: false
867
864
 
868
865
  Lint/Loop:
869
- Description: >-
870
- Use Kernel#loop with break rather than begin/end/until or
871
- begin/end/while for post-loop tests.
866
+ Description: |
867
+ Use Kernel#loop with break rather than begin/end/until or
868
+ begin/end/while for post-loop tests.
872
869
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
873
870
  Enabled: false
874
871
 
875
872
  Lint/ParenthesesAsGroupedExpression:
876
- Description: >-
877
- Checks for method calls with a space before the opening
878
- parenthesis.
873
+ Description: |
874
+ Checks for method calls with a space before the opening
875
+ parenthesis.
879
876
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
880
877
  Enabled: false
881
878
 
882
879
  Lint/RequireParentheses:
883
- Description: >-
884
- Use parentheses in the method call to avoid confusion
885
- about precedence.
880
+ Description: |
881
+ Use parentheses in the method call to avoid confusion
882
+ about precedence.
886
883
  Enabled: false
887
884
 
888
885
  Lint/RescueException:
@@ -891,15 +888,15 @@ Lint/RescueException:
891
888
  Enabled: false
892
889
 
893
890
  Lint/ShadowingOuterLocalVariable:
894
- Description: >-
895
- Do not use the same name as outer local variable
896
- for block arguments or block local variables.
891
+ Description: |
892
+ Do not use the same name as outer local variable
893
+ for block arguments or block local variables.
897
894
  Enabled: false
898
895
 
899
896
  Lint/SpaceBeforeFirstArg:
900
- Description: >-
901
- Put a space between a method name and the first argument
902
- in a method call without parentheses.
897
+ Description: |
898
+ Put a space between a method name and the first argument
899
+ in a method call without parentheses.
903
900
  Enabled: false
904
901
 
905
902
  Lint/StringConversionInInterpolation:
@@ -950,57 +947,3 @@ Lint/Void:
950
947
  Description: 'Possible use of operator/literal/variable in void context.'
951
948
  Enabled: false
952
949
 
953
- ##################### Rails ##################################
954
-
955
- Rails/ActionFilter:
956
- Description: 'Enforces consistent use of action filter methods.'
957
- Enabled: false
958
-
959
- Rails/DefaultScope:
960
- Description: 'Checks if the argument passed to default_scope is a block.'
961
- Enabled: false
962
-
963
- Rails/Delegate:
964
- Description: 'Prefer delegate method for delegations.'
965
- Enabled: false
966
-
967
- Rails/HasAndBelongsToMany:
968
- Description: 'Prefer has_many :through to has_and_belongs_to_many.'
969
- Enabled: true
970
-
971
- Rails/Output:
972
- Description: 'Checks for calls to puts, print, etc.'
973
- Enabled: true
974
-
975
- Rails/ReadWriteAttribute:
976
- Description: >-
977
- Checks for read_attribute(:attr) and
978
- write_attribute(:attr, val).
979
- Enabled: false
980
-
981
- Rails/ScopeArgs:
982
- Description: 'Checks the arguments of ActiveRecord scopes.'
983
- Enabled: false
984
-
985
- Rails/Validation:
986
- Description: 'Use validates :attribute, hash of validations.'
987
- Enabled: false
988
-
989
-
990
- # Exclude some of GitLab files
991
- #
992
- #
993
- AllCops:
994
- RunRailsCops: true
995
- Exclude:
996
- - 'spec/**/*'
997
- - 'features/**/*'
998
- - 'vendor/**/*'
999
- - 'db/**/*'
1000
- - 'tmp/**/*'
1001
- - 'bin/**/*'
1002
- - 'lib/backup/**/*'
1003
- - 'lib/tasks/**/*'
1004
- - 'lib/email_validator.rb'
1005
- - 'lib/gitlab/upgrader.rb'
1006
- - 'lib/gitlab/seeder.rb'