standard 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d2f2b142c591911c9263ef205ac6c9b1db4b6f5b09b4f7adc376107c2caff76
4
- data.tar.gz: 4832357da3082761f15bf36bfb9528573359d06afd2f28591e5abf0b5702f3d2
3
+ metadata.gz: abad67d52d9b77b24e2828c605e85c6bd92f72eb44b960f577f11999c762d6fe
4
+ data.tar.gz: 885379c900c05482ed620fdb768501c7917b53ef102539671f92fa9d63bc62bb
5
5
  SHA512:
6
- metadata.gz: fc978a164d9321430d0d90c2a66473763d0ba19c9903a58b11fcced6a40bdf0fc89eb3714a05ef8978f939ea16e13c6775c0614f7fc0e5eb63f8ef5c092037c9
7
- data.tar.gz: ec7e4dd680b36eb882870da21c23acb0c5df1d5f17a1e8d5d46cd680caa4505517eac48e2af5fe34d5bf5961353fdc03aafb08e882052ce3e78f2b7eaf8b2d4f
6
+ metadata.gz: 251bea8830a7c5b9bea3ccec5978ab19c657e40170444bcbf149d38ac1bd9ffc6467c020b1c4dfb7c53cbdd85a22a84b55fdee28ad421f2759fb02e333f3ddab
7
+ data.tar.gz: e83d9f5e8d53a22237b4b69ec9e5eae541b6b4df4311bf3281e2b6ba6aecf6d802b9417b9d57f619aa64ba8fcf7332b6caf7cf222901909801f82c0ed47a0857
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## 1.12.1
4
9
 
5
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)
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.12.1)
5
- rubocop (= 1.29.1)
6
- rubocop-performance (= 1.13.3)
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.15.0)
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.4.0)
26
+ regexp_parser (2.5.0)
26
27
  rexml (3.2.5)
27
- rubocop (1.29.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
34
  rexml (>= 3.2.5, < 4.0)
33
- rubocop-ast (>= 1.17.0, < 2.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.18.0)
38
+ rubocop-ast (1.19.1)
37
39
  parser (>= 3.1.1.0)
38
- rubocop-performance (1.13.3)
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.1.0)
50
+ unicode-display_width (2.2.0)
49
51
 
50
52
  PLATFORMS
51
53
  ruby
data/config/base.yml CHANGED
@@ -32,12 +32,12 @@ Bundler/InsecureProtocolSource:
32
32
  Bundler/OrderedGems:
33
33
  Enabled: false
34
34
 
35
- Gemspec/DateAssignment:
36
- Enabled: true
37
-
38
35
  Gemspec/DependencyVersion:
39
36
  Enabled: false
40
37
 
38
+ Gemspec/DeprecatedAttributeAssignment:
39
+ Enabled: true
40
+
41
41
  Gemspec/DuplicatedAssignment:
42
42
  Enabled: true
43
43
  Include:
@@ -46,13 +46,13 @@ Gemspec/DuplicatedAssignment:
46
46
  Gemspec/OrderedDependencies:
47
47
  Enabled: false
48
48
 
49
- Gemspec/RequiredRubyVersion:
49
+ Gemspec/RequireMFA:
50
50
  Enabled: false
51
51
 
52
- Gemspec/RubyVersionGlobalsUsage:
52
+ Gemspec/RequiredRubyVersion:
53
53
  Enabled: false
54
54
 
55
- Gemspec/RequireMFA:
55
+ Gemspec/RubyVersionGlobalsUsage:
56
56
  Enabled: false
57
57
 
58
58
  Layout/AccessModifierIndentation:
@@ -249,6 +249,12 @@ Layout/LeadingCommentSpace:
249
249
  Layout/LeadingEmptyLines:
250
250
  Enabled: true
251
251
 
252
+ Layout/LineContinuationLeadingSpace:
253
+ Enabled: false
254
+
255
+ Layout/LineContinuationSpacing:
256
+ Enabled: true
257
+
252
258
  Layout/LineEndStringConcatenationIndentation:
253
259
  Enabled: false
254
260
 
@@ -451,6 +457,9 @@ Lint/CircularArgumentReference:
451
457
  Lint/ConstantDefinitionInBlock:
452
458
  Enabled: true
453
459
 
460
+ Lint/ConstantOverwrittenInRescue:
461
+ Enabled: true
462
+
454
463
  Lint/ConstantResolution:
455
464
  Enabled: false
456
465
 
@@ -558,6 +567,9 @@ Lint/IdentityComparison:
558
567
  Lint/ImplicitStringConcatenation:
559
568
  Enabled: true
560
569
 
570
+ Lint/IncompatibleIoSelectWithFiberScheduler:
571
+ Enabled: false
572
+
561
573
  Lint/IneffectiveAccessModifier:
562
574
  Enabled: true
563
575
 
@@ -605,6 +617,9 @@ Lint/NextWithoutAccumulator:
605
617
  Lint/NoReturnInBeginEndBlocks:
606
618
  Enabled: false
607
619
 
620
+ Lint/NonAtomicFileOperation:
621
+ Enabled: false
622
+
608
623
  Lint/NonDeterministicRequireOrder:
609
624
  Enabled: true
610
625
 
@@ -678,6 +693,9 @@ Lint/RegexpAsCondition:
678
693
  Lint/RequireParentheses:
679
694
  Enabled: true
680
695
 
696
+ Lint/RequireRelativeSelfPath:
697
+ Enabled: true
698
+
681
699
  Lint/RescueException:
682
700
  Enabled: true
683
701
 
@@ -790,9 +808,15 @@ Lint/UselessAccessModifier:
790
808
  Lint/UselessAssignment:
791
809
  Enabled: true
792
810
 
811
+ Lint/UselessElseWithoutRescue:
812
+ Enabled: false
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
- Performance/ConcurrentMonotonicTime:
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/CompoundHash:
1061
- Enabled: true
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
 
@@ -1281,6 +1296,12 @@ Style/ExponentialNotation:
1281
1296
  Style/FetchEnvVar:
1282
1297
  Enabled: false
1283
1298
 
1299
+ Style/FileRead:
1300
+ Enabled: true
1301
+
1302
+ Style/FileWrite:
1303
+ Enabled: true
1304
+
1284
1305
  Style/FloatDivision:
1285
1306
  Enabled: false
1286
1307
 
@@ -1383,6 +1404,12 @@ Style/LineEndConcatenation:
1383
1404
  Enabled: true
1384
1405
  SafeAutoCorrect: false
1385
1406
 
1407
+ Style/MapCompactWithConditionalBlock:
1408
+ Enabled: true
1409
+
1410
+ Style/MapToHash:
1411
+ Enabled: false
1412
+
1386
1413
  Style/MethodCallWithArgsParentheses:
1387
1414
  Enabled: false
1388
1415
 
@@ -1505,6 +1532,12 @@ Style/NonNilCheck:
1505
1532
  Style/Not:
1506
1533
  Enabled: true
1507
1534
 
1535
+ Style/NumberedParameters:
1536
+ Enabled: false
1537
+
1538
+ Style/NumberedParametersLimit:
1539
+ Enabled: false
1540
+
1508
1541
  Style/NumericLiteralPrefix:
1509
1542
  Enabled: true
1510
1543
  EnforcedOctalStyle: zero_with_o
@@ -1521,6 +1554,9 @@ Style/ObjectThen:
1521
1554
  Style/OneLineConditional:
1522
1555
  Enabled: true
1523
1556
 
1557
+ Style/OpenStructUse:
1558
+ Enabled: false
1559
+
1524
1560
  Style/OptionHash:
1525
1561
  Enabled: false
1526
1562
 
@@ -1666,6 +1702,9 @@ Style/SafeNavigation:
1666
1702
  Style/Sample:
1667
1703
  Enabled: true
1668
1704
 
1705
+ Style/SelectByRegexp:
1706
+ Enabled: false
1707
+
1669
1708
  Style/SelfAssignment:
1670
1709
  Enabled: true
1671
1710
 
@@ -1840,24 +1879,3 @@ Style/YodaCondition:
1840
1879
 
1841
1880
  Style/ZeroLengthPredicate:
1842
1881
  Enabled: false
1843
-
1844
- Style/NumberedParameters:
1845
- Enabled: false
1846
-
1847
- Style/NumberedParametersLimit:
1848
- Enabled: false
1849
-
1850
- Style/SelectByRegexp:
1851
- Enabled: false
1852
-
1853
- Style/OpenStructUse:
1854
- Enabled: false
1855
-
1856
- Style/MapToHash:
1857
- Enabled: false
1858
-
1859
- Style/FileWrite:
1860
- Enabled: true
1861
-
1862
- Style/FileRead:
1863
- Enabled: true
@@ -41,7 +41,7 @@ module Standard
41
41
  end
42
42
  end
43
43
 
44
- def finished(inspected_files)
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[:auto_correct] || options[:safe_auto_correct]
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 { |flag|
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({}) { |arg, cli_flags|
28
+ argv.each_with_object({}) do |arg, cli_flags|
29
29
  if arg == "--fix"
30
- cli_flags[:auto_correct] = true
31
- cli_flags[:safe_auto_correct] = true
30
+ cli_flags[:autocorrect] = true
32
31
  elsif arg == "--no-fix"
33
- cli_flags[:auto_correct] = false
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
- auto_correct: standard_yaml[:fix],
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],
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.12.1")
2
+ VERSION = Gem::Version.new('1.13.0')
3
3
  end
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.29.1"
23
- spec.add_dependency "rubocop-performance", "1.13.3"
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.12.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-05-17 00:00:00.000000000 Z
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.29.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.29.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.13.3
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.13.3
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.3.6
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: []