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.
- checksums.yaml +4 -4
- data/.rbenv-gemsets +1 -0
- data/.rubocop.yml +131 -188
- data/.ruby-version +1 -0
- data/Gemfile +0 -9
- data/Rakefile +11 -0
- data/lib/composer.rb +52 -49
- data/lib/composer/json/json_file.rb +110 -83
- data/lib/composer/json/json_formatter.rb +43 -77
- data/lib/composer/json/{json_validaton_error.rb → json_validation_error.rb} +6 -2
- data/lib/composer/package/alias_package.rb +77 -61
- data/lib/composer/package/complete_package.rb +88 -18
- data/lib/composer/package/dumper/hash_dumper.rb +50 -118
- data/lib/composer/package/dumper/hash_dumper/complete_package_attribute_dumpers.rb +47 -0
- data/lib/composer/package/dumper/hash_dumper/package_attribute_dumpers.rb +145 -0
- data/lib/composer/package/dumper/hash_dumper/root_package_attribute_dumpers.rb +24 -0
- data/lib/composer/package/link.rb +15 -5
- data/lib/composer/package/loader/hash_loader.rb +92 -228
- data/lib/composer/package/loader/hash_loader/complete_package_attribute_loaders.rb +83 -0
- data/lib/composer/package/loader/hash_loader/package_attribute_loaders.rb +181 -0
- data/lib/composer/package/loader/hash_loader/root_package_attribute_loaders.rb +32 -0
- data/lib/composer/package/loader/json_loader.rb +7 -9
- data/lib/composer/package/package.rb +611 -43
- data/lib/composer/package/root_alias_package.rb +186 -15
- data/lib/composer/package/root_package.rb +12 -4
- data/lib/composer/package/version/version_parser.rb +16 -532
- data/lib/composer/package/version/version_selector.rb +127 -68
- data/lib/composer/repository/base_repository.rb +46 -3
- data/lib/composer/repository/composite_repository.rb +4 -4
- data/lib/composer/repository/filesystem_repository.rb +15 -8
- data/lib/composer/repository/hash_repository.rb +62 -45
- data/lib/composer/repository/writeable_hash_repository.rb +5 -5
- data/lib/composer/util/composer_mirror.rb +76 -0
- data/php-composer.gemspec +14 -8
- data/resources/composer-schema.json +12 -0
- metadata +117 -16
- data/lib/composer/error.rb +0 -8
- data/lib/composer/package/base_package.rb +0 -130
- data/lib/composer/package/link_constraint/base_constraint.rb +0 -36
- data/lib/composer/package/link_constraint/empty_constraint.rb +0 -35
- data/lib/composer/package/link_constraint/multi_constraint.rb +0 -67
- data/lib/composer/package/link_constraint/specific_constraint.rb +0 -41
- data/lib/composer/package/link_constraint/version_constraint.rb +0 -221
- data/lib/composer/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e6f30b822bb069f38ac2e445ecd2016f5bb4ab7
|
4
|
+
data.tar.gz: 1bb1356ff5cc45d4684ff35ba1c23148e1aa998f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed56037aefb1f8aec21e90a5eb2c5ab81bd128bc2666939ff3110fbc1976248cf44f4745605818b57fb8951d4a10508dd1949dad422cc312fdef2399ff734d6
|
7
|
+
data.tar.gz: 69e9b7ebf5cb3d90b9b5dd16d74e8060bb7fb158d55e7d8d2028fd230fc83feeed1702be3b082f27b959b5cd18c56a0b44ac7ac01e7af5558ac4b5dac9780343
|
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
-global
|
data/.rubocop.yml
CHANGED
@@ -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
|
-
|
18
|
-
|
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
|
-
|
25
|
-
|
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
|
-
|
31
|
-
|
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/
|
80
|
-
Description:
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
-
|
137
|
-
|
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
|
-
|
268
|
-
|
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
|
-
|
275
|
-
|
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
|
-
|
296
|
-
|
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
|
-
|
326
|
-
|
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
|
-
|
337
|
-
|
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
|
-
|
368
|
-
|
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
|
-
|
374
|
-
|
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
|
-
|
381
|
-
|
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
|
-
|
418
|
-
|
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
|
-
|
425
|
-
|
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
|
-
|
437
|
-
|
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
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
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
|
-
|
507
|
-
|
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
|
-
|
534
|
-
|
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
|
-
|
554
|
-
|
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
|
-
|
571
|
-
|
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
|
-
|
581
|
-
|
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
|
-
|
591
|
-
|
592
|
-
|
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
|
-
|
598
|
-
|
599
|
-
|
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
|
-
|
645
|
-
|
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
|
-
|
680
|
-
|
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
|
-
|
701
|
-
|
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
|
-
|
723
|
-
|
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
|
-
|
730
|
+
# Metrics Cops
|
733
731
|
|
734
732
|
Metrics/AbcSize:
|
735
|
-
Description:
|
736
|
-
|
737
|
-
|
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
|
-
|
752
|
-
|
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
|
-
|
773
|
-
|
769
|
+
Description: |
|
770
|
+
A complexity metric geared towards measuring complexity for a
|
771
|
+
human reader.
|
774
772
|
Enabled: false
|
775
773
|
|
776
|
-
|
777
|
-
### Warnings
|
774
|
+
# Linting Cops
|
778
775
|
|
779
776
|
Lint/AmbiguousOperator:
|
780
|
-
Description:
|
781
|
-
|
782
|
-
|
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
|
-
|
789
|
-
|
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
|
-
|
804
|
-
|
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
|
-
|
857
|
-
|
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
|
-
|
871
|
-
|
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
|
-
|
878
|
-
|
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
|
-
|
885
|
-
|
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
|
-
|
896
|
-
|
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
|
-
|
902
|
-
|
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'
|