standard 1.11.0 → 1.13.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 +13 -0
- data/Gemfile.lock +13 -11
- data/config/base.yml +71 -49
- data/lib/standard/formatter.rb +2 -2
- data/lib/standard/merges_settings.rb +7 -10
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abad67d52d9b77b24e2828c605e85c6bd92f72eb44b960f577f11999c762d6fe
|
4
|
+
data.tar.gz: 885379c900c05482ed620fdb768501c7917b53ef102539671f92fa9d63bc62bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 251bea8830a7c5b9bea3ccec5978ab19c657e40170444bcbf149d38ac1bd9ffc6467c020b1c4dfb7c53cbdd85a22a84b55fdee28ad421f2759fb02e333f3ddab
|
7
|
+
data.tar.gz: e83d9f5e8d53a22237b4b69ec9e5eae541b6b4df4311bf3281e2b6ba6aecf6d802b9417b9d57f619aa64ba8fcf7332b6caf7cf222901909801f82c0ed47a0857
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.13.0
|
4
|
+
|
5
|
+
* Update rubocop-performance from 1.13.3 to [1.14.3](https://github.com/rubocop/rubocop-performance/releases/tag/v1.14.3)
|
6
|
+
* Update rubocop from 1.29.1 to [1.31.2](https://github.com/rubocop/rubocop/releases/tag/v1.31.2)
|
7
|
+
|
8
|
+
## 1.12.1
|
9
|
+
|
10
|
+
* Update rubocop from 1.29.0 to [1.29.1](https://github.com/rubocop/rubocop/releases/tag/v1.29.1), fixing [#413](https://github.com/testdouble/standard/issues/413)
|
11
|
+
|
12
|
+
## 1.12.0
|
13
|
+
|
14
|
+
* Update rubocop from 1.28.2 to [1.29.0](https://github.com/rubocop/rubocop/releases/tag/v1.29.0)
|
15
|
+
|
3
16
|
## 1.11.0
|
4
17
|
|
5
18
|
* Update rubocop from 1.27.0 to [1.28.2](https://github.com/rubocop/rubocop/releases/tag/v1.28.2)
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
5
|
-
rubocop (= 1.
|
6
|
-
rubocop-performance (= 1.
|
4
|
+
standard (1.13.0)
|
5
|
+
rubocop (= 1.31.2)
|
6
|
+
rubocop-performance (= 1.14.3)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -12,8 +12,9 @@ GEM
|
|
12
12
|
coderay (1.1.3)
|
13
13
|
docile (1.4.0)
|
14
14
|
gimme (0.5.0)
|
15
|
+
json (2.6.2)
|
15
16
|
method_source (1.0.0)
|
16
|
-
minitest (5.
|
17
|
+
minitest (5.16.2)
|
17
18
|
parallel (1.22.1)
|
18
19
|
parser (3.1.2.0)
|
19
20
|
ast (~> 2.4.1)
|
@@ -22,20 +23,21 @@ GEM
|
|
22
23
|
method_source (~> 1.0)
|
23
24
|
rainbow (3.1.1)
|
24
25
|
rake (13.0.6)
|
25
|
-
regexp_parser (2.
|
26
|
+
regexp_parser (2.5.0)
|
26
27
|
rexml (3.2.5)
|
27
|
-
rubocop (1.
|
28
|
+
rubocop (1.31.2)
|
29
|
+
json (~> 2.3)
|
28
30
|
parallel (~> 1.10)
|
29
31
|
parser (>= 3.1.0.0)
|
30
32
|
rainbow (>= 2.2.2, < 4.0)
|
31
33
|
regexp_parser (>= 1.8, < 3.0)
|
32
|
-
rexml
|
33
|
-
rubocop-ast (>= 1.
|
34
|
+
rexml (>= 3.2.5, < 4.0)
|
35
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
34
36
|
ruby-progressbar (~> 1.7)
|
35
37
|
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
-
rubocop-ast (1.
|
38
|
+
rubocop-ast (1.19.1)
|
37
39
|
parser (>= 3.1.1.0)
|
38
|
-
rubocop-performance (1.
|
40
|
+
rubocop-performance (1.14.3)
|
39
41
|
rubocop (>= 1.7.0, < 2.0)
|
40
42
|
rubocop-ast (>= 0.4.0)
|
41
43
|
ruby-progressbar (1.11.0)
|
@@ -45,7 +47,7 @@ GEM
|
|
45
47
|
simplecov_json_formatter (~> 0.1)
|
46
48
|
simplecov-html (0.12.3)
|
47
49
|
simplecov_json_formatter (0.1.4)
|
48
|
-
unicode-display_width (2.
|
50
|
+
unicode-display_width (2.2.0)
|
49
51
|
|
50
52
|
PLATFORMS
|
51
53
|
ruby
|
data/config/base.yml
CHANGED
@@ -32,7 +32,10 @@ Bundler/InsecureProtocolSource:
|
|
32
32
|
Bundler/OrderedGems:
|
33
33
|
Enabled: false
|
34
34
|
|
35
|
-
Gemspec/
|
35
|
+
Gemspec/DependencyVersion:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Gemspec/DeprecatedAttributeAssignment:
|
36
39
|
Enabled: true
|
37
40
|
|
38
41
|
Gemspec/DuplicatedAssignment:
|
@@ -43,13 +46,13 @@ Gemspec/DuplicatedAssignment:
|
|
43
46
|
Gemspec/OrderedDependencies:
|
44
47
|
Enabled: false
|
45
48
|
|
46
|
-
Gemspec/
|
49
|
+
Gemspec/RequireMFA:
|
47
50
|
Enabled: false
|
48
51
|
|
49
|
-
Gemspec/
|
52
|
+
Gemspec/RequiredRubyVersion:
|
50
53
|
Enabled: false
|
51
54
|
|
52
|
-
Gemspec/
|
55
|
+
Gemspec/RubyVersionGlobalsUsage:
|
53
56
|
Enabled: false
|
54
57
|
|
55
58
|
Layout/AccessModifierIndentation:
|
@@ -246,6 +249,12 @@ Layout/LeadingCommentSpace:
|
|
246
249
|
Layout/LeadingEmptyLines:
|
247
250
|
Enabled: true
|
248
251
|
|
252
|
+
Layout/LineContinuationLeadingSpace:
|
253
|
+
Enabled: false
|
254
|
+
|
255
|
+
Layout/LineContinuationSpacing:
|
256
|
+
Enabled: true
|
257
|
+
|
249
258
|
Layout/LineEndStringConcatenationIndentation:
|
250
259
|
Enabled: false
|
251
260
|
|
@@ -448,6 +457,9 @@ Lint/CircularArgumentReference:
|
|
448
457
|
Lint/ConstantDefinitionInBlock:
|
449
458
|
Enabled: true
|
450
459
|
|
460
|
+
Lint/ConstantOverwrittenInRescue:
|
461
|
+
Enabled: true
|
462
|
+
|
451
463
|
Lint/ConstantResolution:
|
452
464
|
Enabled: false
|
453
465
|
|
@@ -555,6 +567,9 @@ Lint/IdentityComparison:
|
|
555
567
|
Lint/ImplicitStringConcatenation:
|
556
568
|
Enabled: true
|
557
569
|
|
570
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
571
|
+
Enabled: false
|
572
|
+
|
558
573
|
Lint/IneffectiveAccessModifier:
|
559
574
|
Enabled: true
|
560
575
|
|
@@ -602,6 +617,9 @@ Lint/NextWithoutAccumulator:
|
|
602
617
|
Lint/NoReturnInBeginEndBlocks:
|
603
618
|
Enabled: false
|
604
619
|
|
620
|
+
Lint/NonAtomicFileOperation:
|
621
|
+
Enabled: false
|
622
|
+
|
605
623
|
Lint/NonDeterministicRequireOrder:
|
606
624
|
Enabled: true
|
607
625
|
|
@@ -675,6 +693,9 @@ Lint/RegexpAsCondition:
|
|
675
693
|
Lint/RequireParentheses:
|
676
694
|
Enabled: true
|
677
695
|
|
696
|
+
Lint/RequireRelativeSelfPath:
|
697
|
+
Enabled: true
|
698
|
+
|
678
699
|
Lint/RescueException:
|
679
700
|
Enabled: true
|
680
701
|
|
@@ -788,11 +809,14 @@ Lint/UselessAssignment:
|
|
788
809
|
Enabled: true
|
789
810
|
|
790
811
|
Lint/UselessElseWithoutRescue:
|
791
|
-
Enabled:
|
812
|
+
Enabled: false
|
792
813
|
|
793
814
|
Lint/UselessMethodDefinition:
|
794
815
|
Enabled: false
|
795
816
|
|
817
|
+
Lint/UselessRuby2Keywords:
|
818
|
+
Enabled: true
|
819
|
+
|
796
820
|
Lint/UselessSetterCall:
|
797
821
|
Enabled: true
|
798
822
|
|
@@ -803,15 +827,6 @@ Lint/Void:
|
|
803
827
|
Enabled: true
|
804
828
|
CheckForMethodsWithNoSideEffects: false
|
805
829
|
|
806
|
-
Lint/IncompatibleIoSelectWithFiberScheduler:
|
807
|
-
Enabled: true
|
808
|
-
|
809
|
-
Lint/RequireRelativeSelfPath:
|
810
|
-
Enabled: true
|
811
|
-
|
812
|
-
Lint/UselessRuby2Keywords:
|
813
|
-
Enabled: true
|
814
|
-
|
815
830
|
Metrics/AbcSize:
|
816
831
|
Enabled: false
|
817
832
|
|
@@ -851,6 +866,9 @@ Naming/AsciiIdentifiers:
|
|
851
866
|
Naming/BinaryOperatorParameterName:
|
852
867
|
Enabled: true
|
853
868
|
|
869
|
+
Naming/BlockForwarding:
|
870
|
+
Enabled: false
|
871
|
+
|
854
872
|
Naming/BlockParameterName:
|
855
873
|
Enabled: true
|
856
874
|
MinNameLength: 1
|
@@ -899,9 +917,6 @@ Naming/VariableName:
|
|
899
917
|
Naming/VariableNumber:
|
900
918
|
Enabled: false
|
901
919
|
|
902
|
-
Naming/BlockForwarding:
|
903
|
-
Enabled: false
|
904
|
-
|
905
920
|
Performance/AncestorsInclude:
|
906
921
|
Enabled: false
|
907
922
|
|
@@ -935,6 +950,9 @@ Performance/CollectionLiteralInLoop:
|
|
935
950
|
Performance/CompareWithBlock:
|
936
951
|
Enabled: true
|
937
952
|
|
953
|
+
Performance/ConcurrentMonotonicTime:
|
954
|
+
Enabled: true
|
955
|
+
|
938
956
|
Performance/ConstantRegexp:
|
939
957
|
Enabled: true
|
940
958
|
|
@@ -1030,6 +1048,9 @@ Performance/Squeeze:
|
|
1030
1048
|
Performance/StartWith:
|
1031
1049
|
Enabled: true
|
1032
1050
|
|
1051
|
+
Performance/StringIdentifierArgument:
|
1052
|
+
Enabled: true
|
1053
|
+
|
1033
1054
|
Performance/StringInclude:
|
1034
1055
|
Enabled: false
|
1035
1056
|
|
@@ -1048,17 +1069,15 @@ Performance/UnfreezeString:
|
|
1048
1069
|
Performance/UriDefaultParser:
|
1049
1070
|
Enabled: true
|
1050
1071
|
|
1051
|
-
|
1052
|
-
Enabled: true
|
1053
|
-
|
1054
|
-
Performance/StringIdentifierArgument:
|
1072
|
+
Security/CompoundHash:
|
1055
1073
|
Enabled: true
|
1056
1074
|
|
1057
1075
|
Security/Eval:
|
1058
1076
|
Enabled: true
|
1059
1077
|
|
1060
|
-
Security/
|
1061
|
-
Enabled:
|
1078
|
+
Security/IoMethods:
|
1079
|
+
Enabled: false
|
1080
|
+
Safe: false
|
1062
1081
|
|
1063
1082
|
Security/JSONLoad:
|
1064
1083
|
Enabled: true
|
@@ -1076,10 +1095,6 @@ Security/YAMLLoad:
|
|
1076
1095
|
Enabled: true
|
1077
1096
|
SafeAutoCorrect: false
|
1078
1097
|
|
1079
|
-
Security/IoMethods:
|
1080
|
-
Enabled: false
|
1081
|
-
Safe: false
|
1082
|
-
|
1083
1098
|
Standard/BlockSingleLineBraces:
|
1084
1099
|
Enabled: true
|
1085
1100
|
|
@@ -1260,6 +1275,9 @@ Style/EndBlock:
|
|
1260
1275
|
Style/EndlessMethod:
|
1261
1276
|
Enabled: false
|
1262
1277
|
|
1278
|
+
Style/EnvHome:
|
1279
|
+
Enabled: false
|
1280
|
+
|
1263
1281
|
Style/EvalWithLocation:
|
1264
1282
|
Enabled: true
|
1265
1283
|
|
@@ -1278,6 +1296,12 @@ Style/ExponentialNotation:
|
|
1278
1296
|
Style/FetchEnvVar:
|
1279
1297
|
Enabled: false
|
1280
1298
|
|
1299
|
+
Style/FileRead:
|
1300
|
+
Enabled: true
|
1301
|
+
|
1302
|
+
Style/FileWrite:
|
1303
|
+
Enabled: true
|
1304
|
+
|
1281
1305
|
Style/FloatDivision:
|
1282
1306
|
Enabled: false
|
1283
1307
|
|
@@ -1380,6 +1404,12 @@ Style/LineEndConcatenation:
|
|
1380
1404
|
Enabled: true
|
1381
1405
|
SafeAutoCorrect: false
|
1382
1406
|
|
1407
|
+
Style/MapCompactWithConditionalBlock:
|
1408
|
+
Enabled: true
|
1409
|
+
|
1410
|
+
Style/MapToHash:
|
1411
|
+
Enabled: false
|
1412
|
+
|
1383
1413
|
Style/MethodCallWithArgsParentheses:
|
1384
1414
|
Enabled: false
|
1385
1415
|
|
@@ -1502,6 +1532,12 @@ Style/NonNilCheck:
|
|
1502
1532
|
Style/Not:
|
1503
1533
|
Enabled: true
|
1504
1534
|
|
1535
|
+
Style/NumberedParameters:
|
1536
|
+
Enabled: false
|
1537
|
+
|
1538
|
+
Style/NumberedParametersLimit:
|
1539
|
+
Enabled: false
|
1540
|
+
|
1505
1541
|
Style/NumericLiteralPrefix:
|
1506
1542
|
Enabled: true
|
1507
1543
|
EnforcedOctalStyle: zero_with_o
|
@@ -1518,6 +1554,9 @@ Style/ObjectThen:
|
|
1518
1554
|
Style/OneLineConditional:
|
1519
1555
|
Enabled: true
|
1520
1556
|
|
1557
|
+
Style/OpenStructUse:
|
1558
|
+
Enabled: false
|
1559
|
+
|
1521
1560
|
Style/OptionHash:
|
1522
1561
|
Enabled: false
|
1523
1562
|
|
@@ -1561,7 +1600,8 @@ Style/Proc:
|
|
1561
1600
|
Enabled: true
|
1562
1601
|
|
1563
1602
|
Style/QuotedSymbols:
|
1564
|
-
Enabled:
|
1603
|
+
Enabled: true
|
1604
|
+
EnforcedStyle: same_as_string_literals
|
1565
1605
|
|
1566
1606
|
Style/RaiseArgs:
|
1567
1607
|
Enabled: false
|
@@ -1662,6 +1702,9 @@ Style/SafeNavigation:
|
|
1662
1702
|
Style/Sample:
|
1663
1703
|
Enabled: true
|
1664
1704
|
|
1705
|
+
Style/SelectByRegexp:
|
1706
|
+
Enabled: false
|
1707
|
+
|
1665
1708
|
Style/SelfAssignment:
|
1666
1709
|
Enabled: true
|
1667
1710
|
|
@@ -1836,24 +1879,3 @@ Style/YodaCondition:
|
|
1836
1879
|
|
1837
1880
|
Style/ZeroLengthPredicate:
|
1838
1881
|
Enabled: false
|
1839
|
-
|
1840
|
-
Style/NumberedParameters:
|
1841
|
-
Enabled: false
|
1842
|
-
|
1843
|
-
Style/NumberedParametersLimit:
|
1844
|
-
Enabled: false
|
1845
|
-
|
1846
|
-
Style/SelectByRegexp:
|
1847
|
-
Enabled: false
|
1848
|
-
|
1849
|
-
Style/OpenStructUse:
|
1850
|
-
Enabled: false
|
1851
|
-
|
1852
|
-
Style/MapToHash:
|
1853
|
-
Enabled: false
|
1854
|
-
|
1855
|
-
Style/FileWrite:
|
1856
|
-
Enabled: true
|
1857
|
-
|
1858
|
-
Style/FileRead:
|
1859
|
-
Enabled: true
|
data/lib/standard/formatter.rb
CHANGED
@@ -41,7 +41,7 @@ module Standard
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def finished(
|
44
|
+
def finished(_inspected_files)
|
45
45
|
print_todo_congratulations
|
46
46
|
end
|
47
47
|
|
@@ -103,7 +103,7 @@ module Standard
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def auto_correct_option_provided?
|
106
|
-
options[:
|
106
|
+
options[:autocorrect]
|
107
107
|
end
|
108
108
|
|
109
109
|
def should_suggest_fix?(offenses)
|
@@ -19,21 +19,19 @@ module Standard
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def separate_argv(argv)
|
22
|
-
argv.partition
|
22
|
+
argv.partition do |flag|
|
23
23
|
["--generate-todo", "--fix", "--no-fix", "--version", "-v", "--help", "-h"].include?(flag)
|
24
|
-
|
24
|
+
end
|
25
25
|
end
|
26
26
|
|
27
27
|
def parse_standard_argv(argv)
|
28
|
-
argv.each_with_object({})
|
28
|
+
argv.each_with_object({}) do |arg, cli_flags|
|
29
29
|
if arg == "--fix"
|
30
|
-
cli_flags[:
|
31
|
-
cli_flags[:safe_auto_correct] = true
|
30
|
+
cli_flags[:autocorrect] = true
|
32
31
|
elsif arg == "--no-fix"
|
33
|
-
cli_flags[:
|
34
|
-
cli_flags[:safe_auto_correct] = false
|
32
|
+
cli_flags[:autocorrect] = false
|
35
33
|
end
|
36
|
-
|
34
|
+
end
|
37
35
|
end
|
38
36
|
|
39
37
|
def determine_command(argv)
|
@@ -50,8 +48,7 @@ module Standard
|
|
50
48
|
|
51
49
|
def merge(standard_yaml, standard_cli_flags, rubocop_cli_flags)
|
52
50
|
{
|
53
|
-
|
54
|
-
safe_auto_correct: standard_yaml[:fix],
|
51
|
+
autocorrect: standard_yaml[:fix],
|
55
52
|
formatters: [[standard_yaml[:format] || "Standard::Formatter", nil]],
|
56
53
|
parallel: standard_yaml[:parallel],
|
57
54
|
todo_file: standard_yaml[:todo_file],
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -19,6 +19,6 @@ 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", "1.
|
23
|
-
spec.add_dependency "rubocop-performance", "1.
|
22
|
+
spec.add_dependency "rubocop", "1.31.2"
|
23
|
+
spec.add_dependency "rubocop-performance", "1.14.3"
|
24
24
|
end
|
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: 1.
|
4
|
+
version: 1.13.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: 2022-
|
11
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,29 +16,29 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.31.2
|
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: 1.
|
26
|
+
version: 1.31.2
|
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.14.3
|
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.
|
41
|
-
description:
|
40
|
+
version: 1.14.3
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- searls@gmail.com
|
44
44
|
executables:
|
@@ -99,7 +99,7 @@ files:
|
|
99
99
|
homepage: https://github.com/testdouble/standard
|
100
100
|
licenses: []
|
101
101
|
metadata: {}
|
102
|
-
post_install_message:
|
102
|
+
post_install_message:
|
103
103
|
rdoc_options: []
|
104
104
|
require_paths:
|
105
105
|
- lib
|
@@ -114,8 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
118
|
-
signing_key:
|
117
|
+
rubygems_version: 3.3.12
|
118
|
+
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Ruby Style Guide, with linter & automatic code fixer
|
121
121
|
test_files: []
|