standard 1.54.0 → 1.55.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 +4 -4
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +7 -7
- data/config/base.yml +39 -0
- data/config/ruby-2.6.yml +3 -0
- data/config/ruby-3.1.yml +3 -0
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a53eca5836959d4d57f1fa90f4ca8617f2e4d790084486043c3cfd4510d4a704
|
|
4
|
+
data.tar.gz: cb2b1e497b658ff0d5a3e679a4d60faaf9d54427330afba8f635651a3fde613c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 367bc330fb20dc258811855843d11cc41dca32f737632ca9ce420861cf44d8df8f21382d1558422e5711e9fc8a2162616499abe20be4ab7523991cd091fb3075
|
|
7
|
+
data.tar.gz: bf3b143a32830e9caf1083f1b8bdc409e25a1c5656ef31d8a6fcbd9acd444b592db49ab16c3f926f8b731612364295b7c316234450c9a7535d6bfac8f31b864b
|
data/.github/workflows/test.yml
CHANGED
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
strategy: {matrix: {ruby: [ 3.1, 3.2, 3.3, 3.4, '4.0' ]}}
|
|
16
16
|
steps:
|
|
17
|
-
- uses: step-security/harden-runner@
|
|
17
|
+
- uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0
|
|
18
18
|
with: { egress-policy: audit }
|
|
19
19
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
20
20
|
- uses: ruby/setup-ruby@4fc31e1c823882afd7ef55985266a526c589de90 # v1.282.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
standard (1.
|
|
4
|
+
standard (1.55.0)
|
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
|
6
6
|
lint_roller (~> 1.0)
|
|
7
|
-
rubocop (~> 1.
|
|
7
|
+
rubocop (~> 1.87.0)
|
|
8
8
|
standard-custom (~> 1.0.0)
|
|
9
9
|
standard-performance (~> 1.8)
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ GEM
|
|
|
13
13
|
specs:
|
|
14
14
|
ast (2.4.3)
|
|
15
15
|
docile (1.4.0)
|
|
16
|
-
json (2.
|
|
16
|
+
json (2.19.2)
|
|
17
17
|
language_server-protocol (3.17.0.5)
|
|
18
18
|
lint_roller (1.1.0)
|
|
19
19
|
logger (1.7.0)
|
|
@@ -28,15 +28,15 @@ GEM
|
|
|
28
28
|
prism (1.9.0)
|
|
29
29
|
racc (1.8.1)
|
|
30
30
|
rainbow (3.1.1)
|
|
31
|
-
rake (13.
|
|
31
|
+
rake (13.4.2)
|
|
32
32
|
rbs (3.6.1)
|
|
33
33
|
logger
|
|
34
34
|
regexp_parser (2.11.3)
|
|
35
|
-
rubocop (1.
|
|
35
|
+
rubocop (1.87.0)
|
|
36
36
|
json (~> 2.3)
|
|
37
37
|
language_server-protocol (~> 3.17.0.2)
|
|
38
38
|
lint_roller (~> 1.1.0)
|
|
39
|
-
parallel (
|
|
39
|
+
parallel (>= 1.10)
|
|
40
40
|
parser (>= 3.3.0.2)
|
|
41
41
|
rainbow (>= 2.2.2, < 4.0)
|
|
42
42
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
@@ -50,7 +50,7 @@ GEM
|
|
|
50
50
|
lint_roller (~> 1.1)
|
|
51
51
|
rubocop (>= 1.75.0, < 2.0)
|
|
52
52
|
rubocop-ast (>= 1.47.1, < 2.0)
|
|
53
|
-
ruby-lsp (0.26.
|
|
53
|
+
ruby-lsp (0.26.8)
|
|
54
54
|
language_server-protocol (~> 3.17.0)
|
|
55
55
|
prism (>= 1.2, < 2.0)
|
|
56
56
|
rbs (>= 3, < 5)
|
data/config/base.yml
CHANGED
|
@@ -484,6 +484,9 @@ Lint/ConstantResolution:
|
|
|
484
484
|
Lint/CopDirectiveSyntax:
|
|
485
485
|
Enabled: true
|
|
486
486
|
|
|
487
|
+
Lint/DataDefineOverride:
|
|
488
|
+
Enabled: false
|
|
489
|
+
|
|
487
490
|
Lint/Debugger:
|
|
488
491
|
Enabled: true
|
|
489
492
|
|
|
@@ -852,6 +855,9 @@ Lint/UnreachableCode:
|
|
|
852
855
|
Lint/UnreachableLoop:
|
|
853
856
|
Enabled: false
|
|
854
857
|
|
|
858
|
+
Lint/UnreachablePatternBranch:
|
|
859
|
+
Enabled: true
|
|
860
|
+
|
|
855
861
|
Lint/UnusedBlockArgument:
|
|
856
862
|
Enabled: false
|
|
857
863
|
|
|
@@ -1278,6 +1284,9 @@ Style/FileEmpty:
|
|
|
1278
1284
|
Style/FileNull:
|
|
1279
1285
|
Enabled: true
|
|
1280
1286
|
|
|
1287
|
+
Style/FileOpen:
|
|
1288
|
+
Enabled: false
|
|
1289
|
+
|
|
1281
1290
|
Style/FileRead:
|
|
1282
1291
|
Enabled: true
|
|
1283
1292
|
|
|
@@ -1419,6 +1428,9 @@ Style/MapCompactWithConditionalBlock:
|
|
|
1419
1428
|
Style/MapIntoArray:
|
|
1420
1429
|
Enabled: false
|
|
1421
1430
|
|
|
1431
|
+
Style/MapJoin:
|
|
1432
|
+
Enabled: true
|
|
1433
|
+
|
|
1422
1434
|
Style/MapToHash:
|
|
1423
1435
|
Enabled: false
|
|
1424
1436
|
|
|
@@ -1575,6 +1587,9 @@ Style/NumericPredicate:
|
|
|
1575
1587
|
Style/ObjectThen:
|
|
1576
1588
|
Enabled: false
|
|
1577
1589
|
|
|
1590
|
+
Style/OneClassPerFile:
|
|
1591
|
+
Enabled: false
|
|
1592
|
+
|
|
1578
1593
|
Style/OneLineConditional:
|
|
1579
1594
|
Enabled: true
|
|
1580
1595
|
|
|
@@ -1604,6 +1619,9 @@ Style/ParenthesesAroundCondition:
|
|
|
1604
1619
|
AllowSafeAssignment: true
|
|
1605
1620
|
AllowInMultilineConditions: false
|
|
1606
1621
|
|
|
1622
|
+
Style/PartitionInsteadOfDoubleSelect:
|
|
1623
|
+
Enabled: false
|
|
1624
|
+
|
|
1607
1625
|
Style/PercentLiteralDelimiters:
|
|
1608
1626
|
Enabled: true
|
|
1609
1627
|
PreferredDelimiters:
|
|
@@ -1620,6 +1638,9 @@ Style/PercentQLiterals:
|
|
|
1620
1638
|
Style/PerlBackrefs:
|
|
1621
1639
|
Enabled: false
|
|
1622
1640
|
|
|
1641
|
+
Style/PredicateWithKind:
|
|
1642
|
+
Enabled: false
|
|
1643
|
+
|
|
1623
1644
|
Style/PreferredHashMethods:
|
|
1624
1645
|
Enabled: false
|
|
1625
1646
|
|
|
@@ -1636,6 +1657,9 @@ Style/RaiseArgs:
|
|
|
1636
1657
|
Style/RandomWithOffset:
|
|
1637
1658
|
Enabled: true
|
|
1638
1659
|
|
|
1660
|
+
Style/ReduceToHash:
|
|
1661
|
+
Enabled: false
|
|
1662
|
+
|
|
1639
1663
|
Style/RedundantArgument:
|
|
1640
1664
|
Enabled: false
|
|
1641
1665
|
|
|
@@ -1705,6 +1729,9 @@ Style/RedundantInterpolationUnfreeze:
|
|
|
1705
1729
|
Style/RedundantLineContinuation:
|
|
1706
1730
|
Enabled: true
|
|
1707
1731
|
|
|
1732
|
+
Style/RedundantMinMaxBy:
|
|
1733
|
+
Enabled: true
|
|
1734
|
+
|
|
1708
1735
|
Style/RedundantParentheses:
|
|
1709
1736
|
Enabled: true
|
|
1710
1737
|
|
|
@@ -1745,6 +1772,9 @@ Style/RedundantSortBy:
|
|
|
1745
1772
|
Style/RedundantStringEscape:
|
|
1746
1773
|
Enabled: true
|
|
1747
1774
|
|
|
1775
|
+
Style/RedundantStructKeywordInit:
|
|
1776
|
+
Enabled: true
|
|
1777
|
+
|
|
1748
1778
|
Style/RegexpLiteral:
|
|
1749
1779
|
Enabled: false
|
|
1750
1780
|
|
|
@@ -1783,6 +1813,12 @@ Style/SafeNavigationChainLength:
|
|
|
1783
1813
|
Style/Sample:
|
|
1784
1814
|
Enabled: true
|
|
1785
1815
|
|
|
1816
|
+
Style/SelectByKind:
|
|
1817
|
+
Enabled: false
|
|
1818
|
+
|
|
1819
|
+
Style/SelectByRange:
|
|
1820
|
+
Enabled: false
|
|
1821
|
+
|
|
1786
1822
|
Style/SelectByRegexp:
|
|
1787
1823
|
Enabled: false
|
|
1788
1824
|
|
|
@@ -1879,6 +1915,9 @@ Style/SymbolLiteral:
|
|
|
1879
1915
|
Style/SymbolProc:
|
|
1880
1916
|
Enabled: false
|
|
1881
1917
|
|
|
1918
|
+
Style/TallyMethod:
|
|
1919
|
+
Enabled: true
|
|
1920
|
+
|
|
1882
1921
|
Style/TernaryParentheses:
|
|
1883
1922
|
Enabled: true
|
|
1884
1923
|
EnforcedStyle: require_parentheses_when_complex
|
data/config/ruby-2.6.yml
CHANGED
data/config/ruby-3.1.yml
CHANGED
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
22
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
23
23
|
|
|
24
|
-
spec.add_dependency "rubocop", "~> 1.
|
|
24
|
+
spec.add_dependency "rubocop", "~> 1.87.0"
|
|
25
25
|
|
|
26
26
|
spec.add_dependency "lint_roller", "~> 1.0"
|
|
27
27
|
spec.add_dependency "standard-custom", "~> 1.0.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: standard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.55.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Searls
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.87.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 1.
|
|
25
|
+
version: 1.87.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: lint_roller
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
187
187
|
- !ruby/object:Gem::Version
|
|
188
188
|
version: '0'
|
|
189
189
|
requirements: []
|
|
190
|
-
rubygems_version:
|
|
190
|
+
rubygems_version: 3.6.7
|
|
191
191
|
specification_version: 4
|
|
192
192
|
summary: Ruby Style Guide, with linter & automatic code fixer
|
|
193
193
|
test_files: []
|