standard 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +75 -0
- data/Gemfile.lock +24 -19
- data/README.md +5 -1
- data/config/base.yml +84 -27
- data/lib/standard/detects_fixability.rb +1 -5
- data/lib/standard/formatter.rb +14 -8
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59c4fae3fd70f49e1adf75b0d405296751ba18c8a41df7fa538b6efa77214b5c
|
4
|
+
data.tar.gz: 73b864e4973762b2662880e4a0aa4f3c839794b1392a6160466947dd34f55529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: facf91b5c424f7f6d6871131315fa705a7f8bf43a8c34d1b9d2e8de50ebc0ab5cd68eed98a20a22326e4de33eb41f41b42f82bda3905245214d343137e956cfd
|
7
|
+
data.tar.gz: 92d9eb12a61ffa3acd0a425e3ba11421699d513cab44b4e453cb6c2f1140d2e88efc42d8f9c06518e540510425af8a5f09dd7f540356e068e22f7cec62590724
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,80 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.5.0
|
4
|
+
|
5
|
+
* Update Rubocop from
|
6
|
+
[0.85.0](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0850-2020-06-01)
|
7
|
+
to
|
8
|
+
[0.89.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.89.1),
|
9
|
+
enabling:
|
10
|
+
* `Lint/BinaryOperatorWithIdenticalOperands`
|
11
|
+
* `Lint/DuplicateElsifCondition`
|
12
|
+
* `Lint/DuplicateRescueException`
|
13
|
+
* `Lint/FloatComparison`
|
14
|
+
* `Lint/MissingSuper`
|
15
|
+
* `Lint/OutOfRangeRegexpRef`
|
16
|
+
* `Lint/RedundantRequireStatement`
|
17
|
+
* `Lint/RedundantSplatExpansion`
|
18
|
+
* `Lint/SafeNavigationWithEmpty`
|
19
|
+
* `Lint/SelfAssignment`
|
20
|
+
* `Lint/TopLevelReturnWithArgument`
|
21
|
+
* `Style/GlobalStdStream`
|
22
|
+
* `Style/RedundantAssignment`
|
23
|
+
* `Style/RedundantFetchBlock`
|
24
|
+
* `Style/RedundantFileExtensionInRequire`
|
25
|
+
* Update rubocop-performance from 1.6.0 to 1.7.1, enabling:
|
26
|
+
* `Performance/BigDecimalWithNumericArgument`
|
27
|
+
* `Performance/RedundantSortBlock`
|
28
|
+
* `Performance/RedundantStringChars`
|
29
|
+
* `Performance/ReverseFirst`
|
30
|
+
* `Performance/SortReverse`
|
31
|
+
* `Performance/Squeeze`
|
32
|
+
|
33
|
+
## 0.4.7
|
34
|
+
|
35
|
+
* Update Rubocop from
|
36
|
+
[0.83.0](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0830-2020-05-11)
|
37
|
+
to
|
38
|
+
[0.85.0](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0850-2020-06-01), notably:
|
39
|
+
|
40
|
+
* Enable
|
41
|
+
[Lint/MixedRegexpCaptureTypes](https://rubocop.readthedocs.io/en/stable/cops_lint/#lintmixedregexpcapturetypes)
|
42
|
+
* Enable
|
43
|
+
[Lint/DeprecatedOpenSSLConstant](https://rubocop.readthedocs.io/en/stable/cops_lint/#lintdeprecatedopensslconstant)
|
44
|
+
* Enable
|
45
|
+
[Style/RedundantRegexpCharacterClass](https://github.com/rubocop-hq/rubocop/pull/8055)
|
46
|
+
* Enable
|
47
|
+
[Style/RedundantRegexpEscape](https://github.com/rubocop-hq/rubocop/pull/7908)
|
48
|
+
* Update rubocop-performance to
|
49
|
+
[1.6.0](https://github.com/rubocop-hq/rubocop-performance/blob/master/CHANGELOG.md#160-2020-05-22),
|
50
|
+
enabling:
|
51
|
+
* [Performance/BindCall](https://github.com/rubocop-hq/rubocop-performance/issues/77)
|
52
|
+
* [Performance/DeletePrefix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
|
53
|
+
* [Performance/DeleteSuffix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
|
54
|
+
|
55
|
+
|
56
|
+
## 0.4.6
|
57
|
+
|
58
|
+
* Disable `Naming/BinaryOperatorParameterName` because (when non-ascii method
|
59
|
+
names are used), it incorrectly identifies them as being `+()` operator
|
60
|
+
overrides (overly aggressive)
|
61
|
+
|
62
|
+
## 0.4.5
|
63
|
+
|
64
|
+
* Disable `Naming/AsciiIdentifiers` for the same reason as mentioned below in
|
65
|
+
0.4.4 (specifically to allow programs written in non-Latin languages to define
|
66
|
+
identifiers)
|
67
|
+
|
68
|
+
## 0.4.4
|
69
|
+
|
70
|
+
* Disable `Naming/MethodName` cop. While `snake_case` is the conventional way to
|
71
|
+
name a Ruby method, the cop is too restrictive in that it also prevents
|
72
|
+
non-ASCII characters from being included in method names
|
73
|
+
|
74
|
+
## 0.4.3
|
75
|
+
|
76
|
+
* Improve output of the todo feature
|
77
|
+
|
3
78
|
## 0.4.2
|
4
79
|
|
5
80
|
* Track Rubocop
|
data/Gemfile.lock
CHANGED
@@ -1,42 +1,47 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (0.
|
5
|
-
rubocop (~> 0.
|
6
|
-
rubocop-performance (~> 1.
|
4
|
+
standard (0.5.0)
|
5
|
+
rubocop (~> 0.89.1)
|
6
|
+
rubocop-performance (~> 1.7.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ast (2.4.
|
12
|
-
coderay (1.1.
|
11
|
+
ast (2.4.1)
|
12
|
+
coderay (1.1.3)
|
13
13
|
docile (1.3.2)
|
14
14
|
gimme (0.5.0)
|
15
|
-
method_source (0.
|
16
|
-
minitest (5.14.
|
17
|
-
parallel (1.19.
|
18
|
-
parser (2.7.1.
|
19
|
-
ast (~> 2.4.
|
20
|
-
pry (0.
|
21
|
-
coderay (~> 1.1
|
22
|
-
method_source (~>
|
15
|
+
method_source (1.0.0)
|
16
|
+
minitest (5.14.1)
|
17
|
+
parallel (1.19.2)
|
18
|
+
parser (2.7.1.4)
|
19
|
+
ast (~> 2.4.1)
|
20
|
+
pry (0.13.1)
|
21
|
+
coderay (~> 1.1)
|
22
|
+
method_source (~> 1.0)
|
23
23
|
rainbow (3.0.0)
|
24
24
|
rake (13.0.1)
|
25
|
+
regexp_parser (1.7.1)
|
25
26
|
rexml (3.2.4)
|
26
|
-
rubocop (0.
|
27
|
+
rubocop (0.89.1)
|
27
28
|
parallel (~> 1.10)
|
28
|
-
parser (>= 2.7.
|
29
|
+
parser (>= 2.7.1.1)
|
29
30
|
rainbow (>= 2.2.2, < 4.0)
|
31
|
+
regexp_parser (>= 1.7)
|
30
32
|
rexml
|
33
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
31
34
|
ruby-progressbar (~> 1.7)
|
32
35
|
unicode-display_width (>= 1.4.0, < 2.0)
|
33
|
-
rubocop-
|
34
|
-
|
36
|
+
rubocop-ast (0.3.0)
|
37
|
+
parser (>= 2.7.1.4)
|
38
|
+
rubocop-performance (1.7.1)
|
39
|
+
rubocop (>= 0.82.0)
|
35
40
|
ruby-progressbar (1.10.1)
|
36
|
-
simplecov (0.18.
|
41
|
+
simplecov (0.18.5)
|
37
42
|
docile (~> 1.1)
|
38
43
|
simplecov-html (~> 0.11)
|
39
|
-
simplecov-html (0.12.
|
44
|
+
simplecov-html (0.12.2)
|
40
45
|
unicode-display_width (1.7.0)
|
41
46
|
|
42
47
|
PLATFORMS
|
data/README.md
CHANGED
@@ -166,7 +166,7 @@ Because StandardRB is essentially a wrapper on top of
|
|
166
166
|
vast majority of CLI and ENV arguments to RuboCop.
|
167
167
|
|
168
168
|
You can see a list of
|
169
|
-
[RuboCop](https://docs.rubocop.org/
|
169
|
+
[RuboCop](https://docs.rubocop.org/rubocop/usage/basic_usage.html#command-line-flags)'s
|
170
170
|
CLI flags here.
|
171
171
|
|
172
172
|
## Why should I use Ruby Standard Style?
|
@@ -211,6 +211,10 @@ if you've used StandardJS.)
|
|
211
211
|
* [Level UP Solutions](https://levups.com)
|
212
212
|
* [Honeybadger](https://www.honeybadger.io)
|
213
213
|
* [Amazon Web Services](https://aws.amazon.com/)
|
214
|
+
* [Envoy](https://www.envoy.com)
|
215
|
+
* [myRent](https://www.myrent.co.nz)
|
216
|
+
* [Renuo](https://www.renuo.ch/)
|
217
|
+
* [JetThoughts](https://www.jetthoughts.com/)
|
214
218
|
* And that's about it so far!
|
215
219
|
|
216
220
|
If your team starts using Standard, [send a pull
|
data/config/base.yml
CHANGED
@@ -160,7 +160,6 @@ Layout/FirstHashElementIndentation:
|
|
160
160
|
|
161
161
|
Layout/HeredocIndentation:
|
162
162
|
Enabled: true
|
163
|
-
EnforcedStyle: squiggly
|
164
163
|
|
165
164
|
Layout/IndentationConsistency:
|
166
165
|
Enabled: true
|
@@ -327,6 +326,9 @@ Lint/AssignmentInCondition:
|
|
327
326
|
Lint/BigDecimalNew:
|
328
327
|
Enabled: true
|
329
328
|
|
329
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
330
|
+
Enabled: true
|
331
|
+
|
330
332
|
Lint/BooleanSymbol:
|
331
333
|
Enabled: true
|
332
334
|
|
@@ -339,15 +341,24 @@ Lint/Debugger:
|
|
339
341
|
Lint/DeprecatedClassMethods:
|
340
342
|
Enabled: true
|
341
343
|
|
344
|
+
Lint/DeprecatedOpenSSLConstant:
|
345
|
+
Enabled: true
|
346
|
+
|
342
347
|
Lint/DuplicateCaseCondition:
|
343
348
|
Enabled: true
|
344
349
|
|
350
|
+
Lint/DuplicateElsifCondition:
|
351
|
+
Enabled: true
|
352
|
+
|
345
353
|
Lint/DuplicateMethods:
|
346
354
|
Enabled: true
|
347
355
|
|
348
356
|
Lint/DuplicateHashKey:
|
349
357
|
Enabled: true
|
350
358
|
|
359
|
+
Lint/DuplicateRescueException:
|
360
|
+
Enabled: true
|
361
|
+
|
351
362
|
Lint/EachWithObjectArgument:
|
352
363
|
Enabled: true
|
353
364
|
|
@@ -377,6 +388,9 @@ Lint/ErbNewArguments:
|
|
377
388
|
Lint/FlipFlop:
|
378
389
|
Enabled: true
|
379
390
|
|
391
|
+
Lint/FloatComparison:
|
392
|
+
Enabled: true
|
393
|
+
|
380
394
|
Lint/FloatOutOfRange:
|
381
395
|
Enabled: true
|
382
396
|
|
@@ -409,6 +423,12 @@ Lint/MissingCopEnableDirective:
|
|
409
423
|
Enabled: true
|
410
424
|
MaximumRangeSize: .inf
|
411
425
|
|
426
|
+
Lint/MissingSuper:
|
427
|
+
Enabled: true
|
428
|
+
|
429
|
+
Lint/MixedRegexpCaptureTypes:
|
430
|
+
Enabled: true
|
431
|
+
|
412
432
|
Lint/MultipleComparison:
|
413
433
|
Enabled: true
|
414
434
|
|
@@ -430,6 +450,9 @@ Lint/NonLocalExitFromIterator:
|
|
430
450
|
Lint/OrderedMagicComments:
|
431
451
|
Enabled: true
|
432
452
|
|
453
|
+
Lint/OutOfRangeRegexpRef:
|
454
|
+
Enabled: true
|
455
|
+
|
433
456
|
Lint/ParenthesesAsGroupedExpression:
|
434
457
|
Enabled: true
|
435
458
|
|
@@ -442,6 +465,12 @@ Lint/RaiseException:
|
|
442
465
|
Lint/RandOne:
|
443
466
|
Enabled: true
|
444
467
|
|
468
|
+
Lint/RedundantRequireStatement:
|
469
|
+
Enabled: true
|
470
|
+
|
471
|
+
Lint/RedundantSplatExpansion:
|
472
|
+
Enabled: true
|
473
|
+
|
445
474
|
Lint/RedundantStringCoercion:
|
446
475
|
Enabled: true
|
447
476
|
|
@@ -484,6 +513,12 @@ Lint/SafeNavigationConsistency:
|
|
484
513
|
- try
|
485
514
|
- try!
|
486
515
|
|
516
|
+
Lint/SafeNavigationWithEmpty:
|
517
|
+
Enabled: true
|
518
|
+
|
519
|
+
Lint/SelfAssignment:
|
520
|
+
Enabled: true
|
521
|
+
|
487
522
|
Lint/ShadowedArgument:
|
488
523
|
Enabled: true
|
489
524
|
IgnoreImplicitReferences: false
|
@@ -497,16 +532,13 @@ Layout/SpaceAroundMethodCallOperator:
|
|
497
532
|
Lint/Syntax:
|
498
533
|
Enabled: true
|
499
534
|
|
500
|
-
Lint/
|
501
|
-
Enabled: true
|
502
|
-
|
503
|
-
Lint/UnifiedInteger:
|
535
|
+
Lint/TopLevelReturnWithArgument:
|
504
536
|
Enabled: true
|
505
537
|
|
506
|
-
Lint/
|
538
|
+
Lint/UnderscorePrefixedVariableName:
|
507
539
|
Enabled: true
|
508
540
|
|
509
|
-
Lint/
|
541
|
+
Lint/UnifiedInteger:
|
510
542
|
Enabled: true
|
511
543
|
|
512
544
|
Lint/UnreachableCode:
|
@@ -521,9 +553,6 @@ Lint/UriRegexp:
|
|
521
553
|
Lint/UselessAssignment:
|
522
554
|
Enabled: true
|
523
555
|
|
524
|
-
Lint/UselessComparison:
|
525
|
-
Enabled: true
|
526
|
-
|
527
556
|
Lint/UselessElseWithoutRescue:
|
528
557
|
Enabled: true
|
529
558
|
|
@@ -537,12 +566,6 @@ Lint/Void:
|
|
537
566
|
Migration/DepartmentName:
|
538
567
|
Enabled: true
|
539
568
|
|
540
|
-
Naming/AsciiIdentifiers:
|
541
|
-
Enabled: true
|
542
|
-
|
543
|
-
Naming/BinaryOperatorParameterName:
|
544
|
-
Enabled: true
|
545
|
-
|
546
569
|
Naming/ClassAndModuleCamelCase:
|
547
570
|
Enabled: true
|
548
571
|
|
@@ -553,10 +576,6 @@ Naming/HeredocDelimiterCase:
|
|
553
576
|
Enabled: true
|
554
577
|
EnforcedStyle: uppercase
|
555
578
|
|
556
|
-
Naming/MethodName:
|
557
|
-
Enabled: true
|
558
|
-
EnforcedStyle: snake_case
|
559
|
-
|
560
579
|
Naming/BlockParameterName:
|
561
580
|
Enabled: true
|
562
581
|
MinNameLength: 1
|
@@ -568,6 +587,12 @@ Naming/VariableName:
|
|
568
587
|
Enabled: true
|
569
588
|
EnforcedStyle: snake_case
|
570
589
|
|
590
|
+
Performance/BigDecimalWithNumericArgument:
|
591
|
+
Enabled: true
|
592
|
+
|
593
|
+
Performance/BindCall:
|
594
|
+
Enabled: true
|
595
|
+
|
571
596
|
Performance/Caller:
|
572
597
|
Enabled: true
|
573
598
|
|
@@ -577,6 +602,12 @@ Performance/CompareWithBlock:
|
|
577
602
|
Performance/Count:
|
578
603
|
Enabled: true
|
579
604
|
|
605
|
+
Performance/DeletePrefix:
|
606
|
+
Enabled: true
|
607
|
+
|
608
|
+
Performance/DeleteSuffix:
|
609
|
+
Enabled: true
|
610
|
+
|
580
611
|
Performance/Detect:
|
581
612
|
Enabled: true
|
582
613
|
|
@@ -586,8 +617,6 @@ Performance/DoubleStartEndWith:
|
|
586
617
|
|
587
618
|
Performance/EndWith:
|
588
619
|
Enabled: true
|
589
|
-
SafeAutoCorrect: false
|
590
|
-
AutoCorrect: false
|
591
620
|
|
592
621
|
Performance/FixedSize:
|
593
622
|
Enabled: true
|
@@ -611,19 +640,32 @@ Performance/RedundantMerge:
|
|
611
640
|
Enabled: true
|
612
641
|
MaxKeyValuePairs: 2
|
613
642
|
|
643
|
+
Performance/RedundantSortBlock:
|
644
|
+
Enabled: true
|
645
|
+
|
646
|
+
Performance/RedundantStringChars:
|
647
|
+
Enabled: true
|
648
|
+
|
614
649
|
Performance/RegexpMatch:
|
615
650
|
Enabled: true
|
616
651
|
|
617
652
|
Performance/ReverseEach:
|
618
653
|
Enabled: true
|
619
654
|
|
655
|
+
Performance/ReverseFirst:
|
656
|
+
Enabled: true
|
657
|
+
|
620
658
|
Performance/Size:
|
621
659
|
Enabled: true
|
622
660
|
|
661
|
+
Performance/SortReverse:
|
662
|
+
Enabled: true
|
663
|
+
|
664
|
+
Performance/Squeeze:
|
665
|
+
Enabled: true
|
666
|
+
|
623
667
|
Performance/StartWith:
|
624
668
|
Enabled: true
|
625
|
-
SafeAutoCorrect: false
|
626
|
-
AutoCorrect: false
|
627
669
|
|
628
670
|
Performance/StringReplacement:
|
629
671
|
Enabled: true
|
@@ -785,6 +827,9 @@ Style/For:
|
|
785
827
|
Enabled: true
|
786
828
|
EnforcedStyle: each
|
787
829
|
|
830
|
+
Style/GlobalStdStream:
|
831
|
+
Enabled: true
|
832
|
+
|
788
833
|
Style/GlobalVars:
|
789
834
|
Enabled: true
|
790
835
|
AllowedVariables: []
|
@@ -821,9 +866,6 @@ Style/MethodCallWithoutArgsParentheses:
|
|
821
866
|
Enabled: true
|
822
867
|
IgnoredMethods: []
|
823
868
|
|
824
|
-
Style/MethodMissingSuper:
|
825
|
-
Enabled: true
|
826
|
-
|
827
869
|
Style/MissingRespondToMissing:
|
828
870
|
Enabled: true
|
829
871
|
|
@@ -923,6 +965,9 @@ Style/Proc:
|
|
923
965
|
Style/RandomWithOffset:
|
924
966
|
Enabled: true
|
925
967
|
|
968
|
+
Style/RedundantAssignment:
|
969
|
+
Enabled: true
|
970
|
+
|
926
971
|
Style/RedundantBegin:
|
927
972
|
Enabled: true
|
928
973
|
|
@@ -932,12 +977,24 @@ Style/RedundantConditional:
|
|
932
977
|
Style/RedundantException:
|
933
978
|
Enabled: true
|
934
979
|
|
980
|
+
Style/RedundantFetchBlock:
|
981
|
+
Enabled: true
|
982
|
+
|
983
|
+
Style/RedundantFileExtensionInRequire:
|
984
|
+
Enabled: true
|
985
|
+
|
935
986
|
Style/RedundantFreeze:
|
936
987
|
Enabled: true
|
937
988
|
|
938
989
|
Style/RedundantParentheses:
|
939
990
|
Enabled: true
|
940
991
|
|
992
|
+
Style/RedundantRegexpCharacterClass:
|
993
|
+
Enabled: true
|
994
|
+
|
995
|
+
Style/RedundantRegexpEscape:
|
996
|
+
Enabled: true
|
997
|
+
|
941
998
|
Style/RedundantReturn:
|
942
999
|
Enabled: true
|
943
1000
|
AllowMultipleReturnValues: false
|
@@ -3,7 +3,7 @@ module Standard
|
|
3
3
|
def call(offenses)
|
4
4
|
offenses.any? { |offense|
|
5
5
|
cop = cop_instance(offense.cop_name)
|
6
|
-
cop.
|
6
|
+
cop.correctable? && cop.safe_autocorrect?
|
7
7
|
}
|
8
8
|
end
|
9
9
|
|
@@ -12,9 +12,5 @@ module Standard
|
|
12
12
|
def cop_instance(cop_name)
|
13
13
|
RuboCop::Cop.const_get(cop_name.gsub("/", "::")).new
|
14
14
|
end
|
15
|
-
|
16
|
-
def safe?(cop)
|
17
|
-
cop.cop_config.fetch("SafeAutoCorrect", true)
|
18
|
-
end
|
19
15
|
end
|
20
16
|
end
|
data/lib/standard/formatter.rb
CHANGED
@@ -4,10 +4,20 @@ require_relative "detects_fixability"
|
|
4
4
|
|
5
5
|
module Standard
|
6
6
|
class Formatter < RuboCop::Formatter::BaseFormatter
|
7
|
-
|
7
|
+
STANDARD_GREETING = <<-MSG.gsub(/^ {6}/, "")
|
8
|
+
standard: Use Ruby Standard Style (https://github.com/testdouble/standard)
|
9
|
+
MSG
|
10
|
+
|
11
|
+
CALL_TO_ACTION_MESSAGE = <<-MSG.gsub(/^ {6}/, "")
|
8
12
|
Notice: Disagree with these rules? While StandardRB is pre-1.0.0, feel free to submit suggestions to:
|
9
13
|
https://github.com/testdouble/standard/issues/new
|
10
|
-
|
14
|
+
MSG
|
15
|
+
|
16
|
+
def self.fixable_error_message(command)
|
17
|
+
<<-MSG.gsub(/^ {8}/, "")
|
18
|
+
standard: Run `#{command}` to automatically fix some problems.
|
19
|
+
MSG
|
20
|
+
end
|
11
21
|
|
12
22
|
def initialize(*args)
|
13
23
|
super
|
@@ -42,9 +52,7 @@ module Standard
|
|
42
52
|
def print_header_once
|
43
53
|
return if @header_printed_already
|
44
54
|
|
45
|
-
output.print
|
46
|
-
standard: Use Ruby Standard Style (https://github.com/testdouble/standard)
|
47
|
-
HEADER
|
55
|
+
output.print STANDARD_GREETING
|
48
56
|
|
49
57
|
@header_printed_already = true
|
50
58
|
end
|
@@ -57,9 +65,7 @@ module Standard
|
|
57
65
|
"standardrb --fix"
|
58
66
|
end
|
59
67
|
|
60
|
-
output.print
|
61
|
-
standard: Run `#{command}` to automatically fix some problems.
|
62
|
-
HEADER
|
68
|
+
output.print self.class.fixable_error_message(command)
|
63
69
|
@fix_suggestion_printed_already = true
|
64
70
|
end
|
65
71
|
end
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "~> 0.
|
23
|
-
spec.add_dependency "rubocop-performance", "~> 1.
|
22
|
+
spec.add_dependency "rubocop", "~> 0.89.1"
|
23
|
+
spec.add_dependency "rubocop-performance", "~> 1.7.1"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler"
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.89.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.89.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.7.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.7.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
description:
|
125
|
+
description:
|
126
126
|
email:
|
127
127
|
- searls@gmail.com
|
128
128
|
executables:
|
@@ -173,7 +173,7 @@ files:
|
|
173
173
|
homepage: https://github.com/testdouble/standard
|
174
174
|
licenses: []
|
175
175
|
metadata: {}
|
176
|
-
post_install_message:
|
176
|
+
post_install_message:
|
177
177
|
rdoc_options: []
|
178
178
|
require_paths:
|
179
179
|
- lib
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
191
|
rubygems_version: 3.1.2
|
192
|
-
signing_key:
|
192
|
+
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: Ruby Style Guide, with linter & automatic code fixer
|
195
195
|
test_files: []
|