standard 1.50.0 → 1.51.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/dependabot.yml +8 -7
- data/.github/workflows/test.yml +12 -22
- data/.github/workflows/update.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +24 -24
- data/README.md +8 -6
- data/config/base.yml +29 -3
- data/lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb +1 -0
- data/lib/standard/lsp/logger.rb +1 -0
- data/lib/standard/resolves_yaml_option.rb +1 -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: aac91abbf5fa593278b6e5d092cca49ff406d646bf9b52a81bdac4f3fcf2e6c6
|
|
4
|
+
data.tar.gz: 41126e18ae9a72a6c386d5b61f1a07659ed9b576d03b8850d57569d7aee6f8fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d22445ecc503a0ebd9f4556413e6fc791551527ddf6b5fbffc64a39b89bc7c58758162374b06fca78a36bb09c32b1bce2523e4f5576f2cb34a299f46259258ad
|
|
7
|
+
data.tar.gz: fc7c20886599877489dc674e4ca773ecb71daa2d98f7d077d6da7113f8f8fc7832d9d7a84a4ad9411943af92a85729656d1f2182fbafc0c76c15266148eefc45
|
data/.github/dependabot.yml
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
# Please see the documentation for all configuration options:
|
|
2
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
3
|
+
|
|
1
4
|
version: 2
|
|
2
5
|
updates:
|
|
3
|
-
- package-ecosystem:
|
|
6
|
+
- package-ecosystem: bundler
|
|
4
7
|
directory: "/"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
schedule:
|
|
9
|
-
interval: "weekly"
|
|
10
|
-
day: monday
|
|
8
|
+
schedule: { interval: weekly, day: monday }
|
|
9
|
+
- package-ecosystem: github-actions
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule: { interval: weekly }
|
data/.github/workflows/test.yml
CHANGED
|
@@ -2,33 +2,23 @@ name: Tests
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [main]
|
|
6
5
|
pull_request:
|
|
7
|
-
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
schedule: [ cron: "42 0 7 * *" ] # https://crontab.guru/#42_0_7_*_*
|
|
8
8
|
workflow_run:
|
|
9
|
-
workflows: ["Update"]
|
|
10
|
-
types:
|
|
11
|
-
- completed
|
|
9
|
+
workflows: [ "Update" ]
|
|
10
|
+
types: [ completed ]
|
|
12
11
|
|
|
13
12
|
jobs:
|
|
14
13
|
test:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
os: [ubuntu-latest]
|
|
18
|
-
ruby-version:
|
|
19
|
-
- "3.1"
|
|
20
|
-
- "3.2"
|
|
21
|
-
- "3.3"
|
|
22
|
-
- "3.4"
|
|
23
|
-
|
|
24
|
-
runs-on: ${{ matrix.os }}
|
|
25
|
-
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy: {matrix: {ruby: [ '3.0', 3.1, 3.2, 3.3, 3.4 ]}}
|
|
26
16
|
steps:
|
|
27
|
-
- uses:
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
18
|
+
with: { egress-policy: audit }
|
|
19
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
20
|
+
- uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
|
|
30
21
|
with:
|
|
31
|
-
ruby-version: ${{ matrix.ruby
|
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
|
32
23
|
bundler-cache: true
|
|
33
|
-
-
|
|
34
|
-
run: bundle config unset deployment && ./bin/rake
|
|
24
|
+
- run: bin/rake
|
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v5
|
|
18
18
|
- name: Set up Ruby
|
|
19
19
|
uses: ruby/setup-ruby@v1
|
|
20
20
|
with:
|
|
@@ -45,7 +45,7 @@ jobs:
|
|
|
45
45
|
id: date
|
|
46
46
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
|
47
47
|
- name: Create Pull Request
|
|
48
|
-
uses: peter-evans/create-pull-request@
|
|
48
|
+
uses: peter-evans/create-pull-request@v7
|
|
49
49
|
with:
|
|
50
50
|
reviewers: camilopayan
|
|
51
51
|
commit-message: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
standard (1.
|
|
4
|
+
standard (1.51.0)
|
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
|
6
6
|
lint_roller (~> 1.0)
|
|
7
|
-
rubocop (~> 1.
|
|
7
|
+
rubocop (~> 1.80.2)
|
|
8
8
|
standard-custom (~> 1.0.0)
|
|
9
9
|
standard-performance (~> 1.8)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
ast (2.4.
|
|
14
|
+
ast (2.4.3)
|
|
15
15
|
docile (1.4.0)
|
|
16
|
-
json (2.
|
|
17
|
-
language_server-protocol (3.17.0.
|
|
16
|
+
json (2.13.2)
|
|
17
|
+
language_server-protocol (3.17.0.5)
|
|
18
18
|
lint_roller (1.1.0)
|
|
19
|
-
logger (1.
|
|
19
|
+
logger (1.7.0)
|
|
20
20
|
m (1.6.2)
|
|
21
21
|
method_source (>= 0.6.7)
|
|
22
22
|
rake (>= 0.9.2.2)
|
|
23
23
|
method_source (1.0.0)
|
|
24
|
-
minitest (5.25.
|
|
25
|
-
mutex_m (0.
|
|
26
|
-
parallel (1.
|
|
27
|
-
parser (3.3.
|
|
24
|
+
minitest (5.25.5)
|
|
25
|
+
mutex_m (0.3.0)
|
|
26
|
+
parallel (1.27.0)
|
|
27
|
+
parser (3.3.9.0)
|
|
28
28
|
ast (~> 2.4.1)
|
|
29
29
|
racc
|
|
30
30
|
prism (1.4.0)
|
|
31
|
-
racc (1.
|
|
31
|
+
racc (1.8.1)
|
|
32
32
|
rainbow (3.1.1)
|
|
33
|
-
rake (13.0
|
|
34
|
-
rbs (3.
|
|
33
|
+
rake (13.3.0)
|
|
34
|
+
rbs (3.6.1)
|
|
35
35
|
logger
|
|
36
|
-
regexp_parser (2.
|
|
37
|
-
rubocop (1.
|
|
36
|
+
regexp_parser (2.11.2)
|
|
37
|
+
rubocop (1.80.2)
|
|
38
38
|
json (~> 2.3)
|
|
39
39
|
language_server-protocol (~> 3.17.0.2)
|
|
40
40
|
lint_roller (~> 1.1.0)
|
|
@@ -42,21 +42,20 @@ GEM
|
|
|
42
42
|
parser (>= 3.3.0.2)
|
|
43
43
|
rainbow (>= 2.2.2, < 4.0)
|
|
44
44
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
45
|
-
rubocop-ast (>= 1.
|
|
45
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
|
46
46
|
ruby-progressbar (~> 1.7)
|
|
47
47
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
48
|
-
rubocop-ast (1.
|
|
48
|
+
rubocop-ast (1.46.0)
|
|
49
49
|
parser (>= 3.3.7.2)
|
|
50
50
|
prism (~> 1.4)
|
|
51
51
|
rubocop-performance (1.25.0)
|
|
52
52
|
lint_roller (~> 1.1)
|
|
53
53
|
rubocop (>= 1.75.0, < 2.0)
|
|
54
54
|
rubocop-ast (>= 1.38.0, < 2.0)
|
|
55
|
-
ruby-lsp (0.
|
|
55
|
+
ruby-lsp (0.26.1)
|
|
56
56
|
language_server-protocol (~> 3.17.0)
|
|
57
57
|
prism (>= 1.2, < 2.0)
|
|
58
|
-
rbs (>= 3, <
|
|
59
|
-
sorbet-runtime (>= 0.5.10782)
|
|
58
|
+
rbs (>= 3, < 5)
|
|
60
59
|
ruby-progressbar (1.13.0)
|
|
61
60
|
simplecov (0.22.0)
|
|
62
61
|
docile (~> 1.1)
|
|
@@ -64,14 +63,15 @@ GEM
|
|
|
64
63
|
simplecov_json_formatter (~> 0.1)
|
|
65
64
|
simplecov-html (0.13.1)
|
|
66
65
|
simplecov_json_formatter (0.1.4)
|
|
67
|
-
sorbet-runtime (0.5.11481)
|
|
68
66
|
standard-custom (1.0.2)
|
|
69
67
|
lint_roller (~> 1.0)
|
|
70
68
|
rubocop (~> 1.50)
|
|
71
69
|
standard-performance (1.8.0)
|
|
72
70
|
lint_roller (~> 1.1)
|
|
73
71
|
rubocop-performance (~> 1.25.0)
|
|
74
|
-
unicode-display_width (
|
|
72
|
+
unicode-display_width (3.1.5)
|
|
73
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
74
|
+
unicode-emoji (4.0.4)
|
|
75
75
|
|
|
76
76
|
PLATFORMS
|
|
77
77
|
ruby
|
|
@@ -80,9 +80,9 @@ PLATFORMS
|
|
|
80
80
|
DEPENDENCIES
|
|
81
81
|
bundler
|
|
82
82
|
m
|
|
83
|
-
minitest (~> 5.
|
|
83
|
+
minitest (~> 5.25)
|
|
84
84
|
mutex_m
|
|
85
|
-
rake (~> 13.
|
|
85
|
+
rake (~> 13.3)
|
|
86
86
|
ruby-lsp
|
|
87
87
|
simplecov
|
|
88
88
|
standard!
|
data/README.md
CHANGED
|
@@ -153,14 +153,16 @@ continuous integration systems.
|
|
|
153
153
|
|
|
154
154
|
We've added a number of editing guides for getting started:
|
|
155
155
|
|
|
156
|
-
- [VS Code](https://github.com/standardrb/standard/wiki/IDE:-vscode)
|
|
157
|
-
- [vim](https://github.com/standardrb/standard/wiki/IDE:-vim)
|
|
158
|
-
- [neovim](https://github.com/standardrb/standard/wiki/IDE:-neovim)
|
|
159
|
-
- [RubyMine](https://www.jetbrains.com/help/ruby/rubocop.html#disable_rubocop)
|
|
160
|
-
- [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
|
|
161
|
-
- [Helix](https://github.com/helix-editor/helix/wiki/External-formatter-configuration#standardrb)
|
|
162
156
|
- [Atom](https://github.com/standardrb/standard/wiki/IDE:-Atom)
|
|
157
|
+
- [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
|
|
158
|
+
- [Helix](https://github.com/helix-editor/helix/wiki/Formatter-configurations#standardrb)
|
|
159
|
+
- [neovim](https://github.com/standardrb/standard/wiki/IDE:-neovim)
|
|
163
160
|
- [Nova](https://codeberg.org/edwardloveall/nova-standard)
|
|
161
|
+
- [RubyMine](https://www.jetbrains.com/help/ruby/rubocop.html#disable_rubocop)
|
|
162
|
+
- [vim](https://github.com/standardrb/standard/wiki/IDE:-vim)
|
|
163
|
+
- [VS Code](https://github.com/standardrb/standard/wiki/IDE:-vscode)
|
|
164
|
+
- [Zed](https://zed.dev/docs/languages/ruby#setting-up-ruby-lsp)
|
|
165
|
+
- [Sublime Text](https://github.com/standardrb/standard/wiki/IDE:-Sublime-Text)
|
|
164
166
|
|
|
165
167
|
If you'd like to help by creating a guide, please draft one [in an
|
|
166
168
|
issue](https://github.com/standardrb/standard/issues/new) and we'll get it
|
data/config/base.yml
CHANGED
|
@@ -30,6 +30,9 @@ Bundler/OrderedGems:
|
|
|
30
30
|
Gemspec/AddRuntimeDependency:
|
|
31
31
|
Enabled: false
|
|
32
32
|
|
|
33
|
+
Gemspec/AttributeAssignment:
|
|
34
|
+
Enabled: false
|
|
35
|
+
|
|
33
36
|
Gemspec/DependencyVersion:
|
|
34
37
|
Enabled: false
|
|
35
38
|
|
|
@@ -122,7 +125,7 @@ Layout/EmptyComment:
|
|
|
122
125
|
AllowMarginComment: true
|
|
123
126
|
|
|
124
127
|
Layout/EmptyLineAfterGuardClause:
|
|
125
|
-
Enabled:
|
|
128
|
+
Enabled: true
|
|
126
129
|
|
|
127
130
|
Layout/EmptyLineAfterMagicComment:
|
|
128
131
|
Enabled: true
|
|
@@ -132,12 +135,15 @@ Layout/EmptyLineAfterMultilineCondition:
|
|
|
132
135
|
|
|
133
136
|
Layout/EmptyLineBetweenDefs:
|
|
134
137
|
Enabled: true
|
|
135
|
-
AllowAdjacentOneLineDefs:
|
|
138
|
+
AllowAdjacentOneLineDefs: true
|
|
136
139
|
NumberOfEmptyLines: 1
|
|
137
140
|
|
|
138
141
|
Layout/EmptyLines:
|
|
139
142
|
Enabled: true
|
|
140
143
|
|
|
144
|
+
Layout/EmptyLinesAfterModuleInclusion:
|
|
145
|
+
Enabled: true
|
|
146
|
+
|
|
141
147
|
Layout/EmptyLinesAroundAccessModifier:
|
|
142
148
|
Enabled: true
|
|
143
149
|
|
|
@@ -243,6 +249,7 @@ Layout/InitialIndentation:
|
|
|
243
249
|
|
|
244
250
|
Layout/LeadingCommentSpace:
|
|
245
251
|
Enabled: true
|
|
252
|
+
AllowRBSInlineAnnotation: true
|
|
246
253
|
|
|
247
254
|
Layout/LeadingEmptyLines:
|
|
248
255
|
Enabled: true
|
|
@@ -866,6 +873,9 @@ Lint/UselessAssignment:
|
|
|
866
873
|
Lint/UselessConstantScoping:
|
|
867
874
|
Enabled: false
|
|
868
875
|
|
|
876
|
+
Lint/UselessDefaultValueArgument:
|
|
877
|
+
Enabled: false
|
|
878
|
+
|
|
869
879
|
Lint/UselessDefined:
|
|
870
880
|
Enabled: true
|
|
871
881
|
|
|
@@ -878,6 +888,9 @@ Lint/UselessMethodDefinition:
|
|
|
878
888
|
Lint/UselessNumericOperation:
|
|
879
889
|
Enabled: false
|
|
880
890
|
|
|
891
|
+
Lint/UselessOr:
|
|
892
|
+
Enabled: true
|
|
893
|
+
|
|
881
894
|
Lint/UselessRescue:
|
|
882
895
|
Enabled: true
|
|
883
896
|
|
|
@@ -974,7 +987,10 @@ Naming/MethodName:
|
|
|
974
987
|
Naming/MethodParameterName:
|
|
975
988
|
Enabled: false
|
|
976
989
|
|
|
977
|
-
Naming/
|
|
990
|
+
Naming/PredicateMethod:
|
|
991
|
+
Enabled: false
|
|
992
|
+
|
|
993
|
+
Naming/PredicatePrefix:
|
|
978
994
|
Enabled: false
|
|
979
995
|
|
|
980
996
|
Naming/RescuedExceptionsVariableName:
|
|
@@ -1101,6 +1117,9 @@ Style/CollectionCompact:
|
|
|
1101
1117
|
Style/CollectionMethods:
|
|
1102
1118
|
Enabled: false
|
|
1103
1119
|
|
|
1120
|
+
Style/CollectionQuerying:
|
|
1121
|
+
Enabled: false
|
|
1122
|
+
|
|
1104
1123
|
Style/ColonMethodCall:
|
|
1105
1124
|
Enabled: true
|
|
1106
1125
|
|
|
@@ -1211,6 +1230,10 @@ Style/EmptyMethod:
|
|
|
1211
1230
|
Enabled: true
|
|
1212
1231
|
EnforcedStyle: expanded
|
|
1213
1232
|
|
|
1233
|
+
Style/EmptyStringInsideInterpolation:
|
|
1234
|
+
Enabled: true
|
|
1235
|
+
EnforcedStyle: trailing_conditional
|
|
1236
|
+
|
|
1214
1237
|
Style/Encoding:
|
|
1215
1238
|
Enabled: true
|
|
1216
1239
|
|
|
@@ -1604,6 +1627,9 @@ Style/RedundantArgument:
|
|
|
1604
1627
|
Style/RedundantArrayConstructor:
|
|
1605
1628
|
Enabled: true
|
|
1606
1629
|
|
|
1630
|
+
Style/RedundantArrayFlatten:
|
|
1631
|
+
Enabled: true
|
|
1632
|
+
|
|
1607
1633
|
Style/RedundantAssignment:
|
|
1608
1634
|
Enabled: true
|
|
1609
1635
|
|
data/lib/standard/lsp/logger.rb
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.80.2"
|
|
25
25
|
|
|
26
26
|
spec.add_dependency "lint_roller", "~> 1.0"
|
|
27
27
|
spec.add_dependency "standard-custom", "~> 1.0.0"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: standard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.51.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Searls
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-09-09 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rubocop
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.80.2
|
|
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.80.2
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: lint_roller
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|