standard 1.43.0 → 1.51.1
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 +36 -0
- data/Gemfile +3 -4
- data/Gemfile.lock +37 -34
- data/README.md +9 -6
- data/config/base.yml +70 -2
- data/config/ruby-2.2.yml +3 -0
- data/config/ruby-2.4.yml +3 -0
- data/config/ruby-2.5.yml +3 -0
- data/config/ruby-3.3.yml +3 -0
- data/lib/ruby_lsp/standard/addon.rb +1 -1
- data/lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb +1 -0
- data/lib/standard/lsp/logger.rb +1 -0
- data/lib/standard/rake.rb +1 -1
- data/lib/standard/resolves_yaml_option.rb +1 -0
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +7 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07c40762e88776ff266e671bb0e0f9985b2017e91b99ff1593c24b7909663325
|
|
4
|
+
data.tar.gz: 65eebc32148755c1fa6fd98bfd24219f97f30466c8bff2edd360637d789c4118
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77d7ef4b4a63e4bd9c5fcc834a669db73d83299ae398e44424d5634b2507ed86910e4464ef487a8aaa6fe5aca1a73c7ba381ad9639532ebb9f65c4a53fc97873
|
|
7
|
+
data.tar.gz: '0048c371fc119bc358eb9603e6ec41fbdc136a7d17776f4a3ffcfc8144d8c125cb6e65de77c996b9638321392cbed1d12f12b47f8e405011bd3593db07266228'
|
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.0"
|
|
20
|
-
- "3.1"
|
|
21
|
-
- "3.2"
|
|
22
|
-
- "3.3"
|
|
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
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.51.1
|
|
4
|
+
|
|
5
|
+
* Fixes Layout/EmptyLineAfterGuardClause back to false after [#750](https://github.com/standardrb/standard/issues/750)
|
|
6
|
+
|
|
7
|
+
## 1.51.0
|
|
8
|
+
|
|
9
|
+
* Updates rubocop to [1.81.2](https://github.com/rubocop/rubocop/tree/v1.81.2)
|
|
10
|
+
|
|
11
|
+
## 1.50.0
|
|
12
|
+
|
|
13
|
+
* Updates rubocop to [1.75.5](https://github.com/rubocop/rubocop/tree/v1.75.5)
|
|
14
|
+
|
|
15
|
+
## 1.49.0
|
|
16
|
+
|
|
17
|
+
* Updates standard performance to 1.8.0
|
|
18
|
+
|
|
19
|
+
## 1.48.0
|
|
20
|
+
|
|
21
|
+
* Updates rubocop to [1.75.2](https://github.com/rubocop/rubocop/tree/v1.75.2)
|
|
22
|
+
|
|
23
|
+
## 1.47.0
|
|
24
|
+
|
|
25
|
+
* Updates standard performance to 1.7.0
|
|
26
|
+
|
|
27
|
+
## 1.46.0
|
|
28
|
+
|
|
29
|
+
* Updates rubocop to [1.73.2](https://github.com/rubocop/rubocop/tree/v1.73.2)
|
|
30
|
+
|
|
31
|
+
## 1.45.0
|
|
32
|
+
|
|
33
|
+
* Updates rubocop to [1.71.0](https://github.com/rubocop/rubocop/tree/v1.71.0)
|
|
34
|
+
|
|
35
|
+
## 1.44.0
|
|
36
|
+
|
|
37
|
+
* Updates rubocop to [1.70.0](https://github.com/rubocop/rubocop/tree/v1.70.0)
|
|
38
|
+
|
|
3
39
|
## 1.43.0
|
|
4
40
|
|
|
5
41
|
* Updates rubocop to [1.69.1](https://github.com/rubocop/rubocop/tree/v1.69.1)
|
data/Gemfile
CHANGED
|
@@ -3,15 +3,14 @@ source "https://rubygems.org"
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
5
|
gem "bundler"
|
|
6
|
-
gem "minitest", "~> 5.0"
|
|
7
|
-
gem "rake", "~> 13.0"
|
|
8
6
|
gem "m"
|
|
7
|
+
gem "minitest"
|
|
9
8
|
gem "mutex_m"
|
|
9
|
+
gem "rake"
|
|
10
10
|
gem "ruby-lsp"
|
|
11
|
+
gem "simplecov"
|
|
11
12
|
|
|
12
13
|
# You may want to run these off path locally:
|
|
13
14
|
# gem "lint_roller", path: "../lint_roller"
|
|
14
15
|
# gem "standard-custom", path: "../standard-custom"
|
|
15
16
|
# gem "standard-performance", path: "../standard-performance"
|
|
16
|
-
|
|
17
|
-
gem "simplecov"
|
data/Gemfile.lock
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
standard (1.
|
|
4
|
+
standard (1.51.1)
|
|
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
|
-
standard-performance (~> 1.
|
|
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
|
-
prism (
|
|
31
|
-
racc (1.
|
|
30
|
+
prism (1.4.0)
|
|
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
|
-
language_server-protocol (
|
|
39
|
+
language_server-protocol (~> 3.17.0.2)
|
|
40
|
+
lint_roller (~> 1.1.0)
|
|
40
41
|
parallel (~> 1.10)
|
|
41
42
|
parser (>= 3.3.0.2)
|
|
42
43
|
rainbow (>= 2.2.2, < 4.0)
|
|
43
44
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
44
|
-
rubocop-ast (>= 1.
|
|
45
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
|
45
46
|
ruby-progressbar (~> 1.7)
|
|
46
47
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
47
|
-
rubocop-ast (1.
|
|
48
|
-
parser (>= 3.3.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
rubocop-ast (1.46.0)
|
|
49
|
+
parser (>= 3.3.7.2)
|
|
50
|
+
prism (~> 1.4)
|
|
51
|
+
rubocop-performance (1.25.0)
|
|
52
|
+
lint_roller (~> 1.1)
|
|
53
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
54
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
55
|
+
ruby-lsp (0.26.1)
|
|
53
56
|
language_server-protocol (~> 3.17.0)
|
|
54
|
-
prism (>=
|
|
55
|
-
rbs (>= 3, <
|
|
56
|
-
sorbet-runtime (>= 0.5.10782)
|
|
57
|
+
prism (>= 1.2, < 2.0)
|
|
58
|
+
rbs (>= 3, < 5)
|
|
57
59
|
ruby-progressbar (1.13.0)
|
|
58
60
|
simplecov (0.22.0)
|
|
59
61
|
docile (~> 1.1)
|
|
@@ -61,14 +63,15 @@ GEM
|
|
|
61
63
|
simplecov_json_formatter (~> 0.1)
|
|
62
64
|
simplecov-html (0.13.1)
|
|
63
65
|
simplecov_json_formatter (0.1.4)
|
|
64
|
-
sorbet-runtime (0.5.11481)
|
|
65
66
|
standard-custom (1.0.2)
|
|
66
67
|
lint_roller (~> 1.0)
|
|
67
68
|
rubocop (~> 1.50)
|
|
68
|
-
standard-performance (1.
|
|
69
|
+
standard-performance (1.8.0)
|
|
69
70
|
lint_roller (~> 1.1)
|
|
70
|
-
rubocop-performance (~> 1.
|
|
71
|
-
unicode-display_width (
|
|
71
|
+
rubocop-performance (~> 1.25.0)
|
|
72
|
+
unicode-display_width (3.1.5)
|
|
73
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
74
|
+
unicode-emoji (4.0.4)
|
|
72
75
|
|
|
73
76
|
PLATFORMS
|
|
74
77
|
ruby
|
|
@@ -77,9 +80,9 @@ PLATFORMS
|
|
|
77
80
|
DEPENDENCIES
|
|
78
81
|
bundler
|
|
79
82
|
m
|
|
80
|
-
minitest
|
|
83
|
+
minitest
|
|
81
84
|
mutex_m
|
|
82
|
-
rake
|
|
85
|
+
rake
|
|
83
86
|
ruby-lsp
|
|
84
87
|
simplecov
|
|
85
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
|
|
@@ -503,6 +505,7 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
|
|
|
503
505
|
* [Honeybadger](https://www.honeybadger.io)
|
|
504
506
|
* [JetThoughts](https://www.jetthoughts.com/)
|
|
505
507
|
* [Level UP Solutions](https://levups.com)
|
|
508
|
+
* [Lobsters](https://github.com/lobsters/lobsters)
|
|
506
509
|
* [Monterail](https://www.monterail.com)
|
|
507
510
|
* [myRent](https://www.myrent.co.nz)
|
|
508
511
|
* [OBLSK](https://oblsk.com/)
|
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
|
|
|
@@ -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
|
|
@@ -439,6 +446,10 @@ Lint/AmbiguousRange:
|
|
|
439
446
|
Lint/AmbiguousRegexpLiteral:
|
|
440
447
|
Enabled: true
|
|
441
448
|
|
|
449
|
+
Lint/ArrayLiteralInRegexp:
|
|
450
|
+
Enabled: true
|
|
451
|
+
AutoCorrect: false
|
|
452
|
+
|
|
442
453
|
Lint/AssignmentInCondition:
|
|
443
454
|
Enabled: true
|
|
444
455
|
AllowSafeAssignment: true
|
|
@@ -464,9 +475,15 @@ Lint/ConstantDefinitionInBlock:
|
|
|
464
475
|
Lint/ConstantOverwrittenInRescue:
|
|
465
476
|
Enabled: true
|
|
466
477
|
|
|
478
|
+
Lint/ConstantReassignment:
|
|
479
|
+
Enabled: true
|
|
480
|
+
|
|
467
481
|
Lint/ConstantResolution:
|
|
468
482
|
Enabled: false
|
|
469
483
|
|
|
484
|
+
Lint/CopDirectiveSyntax:
|
|
485
|
+
Enabled: true
|
|
486
|
+
|
|
470
487
|
Lint/Debugger:
|
|
471
488
|
Enabled: true
|
|
472
489
|
|
|
@@ -707,6 +724,9 @@ Lint/RedundantSplatExpansion:
|
|
|
707
724
|
Lint/RedundantStringCoercion:
|
|
708
725
|
Enabled: true
|
|
709
726
|
|
|
727
|
+
Lint/RedundantTypeConversion:
|
|
728
|
+
Enabled: true
|
|
729
|
+
|
|
710
730
|
Lint/RedundantWithIndex:
|
|
711
731
|
Enabled: true
|
|
712
732
|
|
|
@@ -777,12 +797,19 @@ Lint/ShadowedException:
|
|
|
777
797
|
Lint/ShadowingOuterLocalVariable:
|
|
778
798
|
Enabled: false
|
|
779
799
|
|
|
800
|
+
Lint/SharedMutableDefault:
|
|
801
|
+
Enabled: true
|
|
802
|
+
|
|
780
803
|
Lint/StructNewOverride:
|
|
781
804
|
Enabled: false
|
|
782
805
|
|
|
783
806
|
Lint/SuppressedException:
|
|
784
807
|
Enabled: false
|
|
785
808
|
|
|
809
|
+
Lint/SuppressedExceptionInNumberConversion:
|
|
810
|
+
Enabled: true
|
|
811
|
+
AutoCorrect: false
|
|
812
|
+
|
|
786
813
|
Lint/SymbolConversion:
|
|
787
814
|
Enabled: true
|
|
788
815
|
|
|
@@ -843,6 +870,12 @@ Lint/UselessAccessModifier:
|
|
|
843
870
|
Lint/UselessAssignment:
|
|
844
871
|
Enabled: true
|
|
845
872
|
|
|
873
|
+
Lint/UselessConstantScoping:
|
|
874
|
+
Enabled: false
|
|
875
|
+
|
|
876
|
+
Lint/UselessDefaultValueArgument:
|
|
877
|
+
Enabled: false
|
|
878
|
+
|
|
846
879
|
Lint/UselessDefined:
|
|
847
880
|
Enabled: true
|
|
848
881
|
|
|
@@ -855,6 +888,9 @@ Lint/UselessMethodDefinition:
|
|
|
855
888
|
Lint/UselessNumericOperation:
|
|
856
889
|
Enabled: false
|
|
857
890
|
|
|
891
|
+
Lint/UselessOr:
|
|
892
|
+
Enabled: true
|
|
893
|
+
|
|
858
894
|
Lint/UselessRescue:
|
|
859
895
|
Enabled: true
|
|
860
896
|
|
|
@@ -951,7 +987,10 @@ Naming/MethodName:
|
|
|
951
987
|
Naming/MethodParameterName:
|
|
952
988
|
Enabled: false
|
|
953
989
|
|
|
954
|
-
Naming/
|
|
990
|
+
Naming/PredicateMethod:
|
|
991
|
+
Enabled: false
|
|
992
|
+
|
|
993
|
+
Naming/PredicatePrefix:
|
|
955
994
|
Enabled: false
|
|
956
995
|
|
|
957
996
|
Naming/RescuedExceptionsVariableName:
|
|
@@ -1078,6 +1117,9 @@ Style/CollectionCompact:
|
|
|
1078
1117
|
Style/CollectionMethods:
|
|
1079
1118
|
Enabled: false
|
|
1080
1119
|
|
|
1120
|
+
Style/CollectionQuerying:
|
|
1121
|
+
Enabled: false
|
|
1122
|
+
|
|
1081
1123
|
Style/ColonMethodCall:
|
|
1082
1124
|
Enabled: true
|
|
1083
1125
|
|
|
@@ -1101,6 +1143,9 @@ Style/CommentAnnotation:
|
|
|
1101
1143
|
Style/CommentedKeyword:
|
|
1102
1144
|
Enabled: false
|
|
1103
1145
|
|
|
1146
|
+
Style/ComparableBetween:
|
|
1147
|
+
Enabled: true
|
|
1148
|
+
|
|
1104
1149
|
Style/ComparableClamp:
|
|
1105
1150
|
Enabled: true
|
|
1106
1151
|
|
|
@@ -1185,6 +1230,10 @@ Style/EmptyMethod:
|
|
|
1185
1230
|
Enabled: true
|
|
1186
1231
|
EnforcedStyle: expanded
|
|
1187
1232
|
|
|
1233
|
+
Style/EmptyStringInsideInterpolation:
|
|
1234
|
+
Enabled: true
|
|
1235
|
+
EnforcedStyle: trailing_conditional
|
|
1236
|
+
|
|
1188
1237
|
Style/Encoding:
|
|
1189
1238
|
Enabled: true
|
|
1190
1239
|
|
|
@@ -1270,9 +1319,15 @@ Style/HashEachMethods:
|
|
|
1270
1319
|
Style/HashExcept:
|
|
1271
1320
|
Enabled: true
|
|
1272
1321
|
|
|
1322
|
+
Style/HashFetchChain:
|
|
1323
|
+
Enabled: false
|
|
1324
|
+
|
|
1273
1325
|
Style/HashLikeCase:
|
|
1274
1326
|
Enabled: false
|
|
1275
1327
|
|
|
1328
|
+
Style/HashSlice:
|
|
1329
|
+
Enabled: true
|
|
1330
|
+
|
|
1276
1331
|
Style/HashSyntax:
|
|
1277
1332
|
Enabled: true
|
|
1278
1333
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
@@ -1323,6 +1378,13 @@ Style/InvertibleUnlessCondition:
|
|
|
1323
1378
|
Style/IpAddresses:
|
|
1324
1379
|
Enabled: false
|
|
1325
1380
|
|
|
1381
|
+
Style/ItAssignment:
|
|
1382
|
+
Enabled: true
|
|
1383
|
+
|
|
1384
|
+
Style/ItBlockParameter:
|
|
1385
|
+
Enabled: true
|
|
1386
|
+
EnforcedStyle: only_numbered_parameters
|
|
1387
|
+
|
|
1326
1388
|
Style/KeywordArgumentsMerging:
|
|
1327
1389
|
Enabled: false
|
|
1328
1390
|
|
|
@@ -1565,6 +1627,9 @@ Style/RedundantArgument:
|
|
|
1565
1627
|
Style/RedundantArrayConstructor:
|
|
1566
1628
|
Enabled: true
|
|
1567
1629
|
|
|
1630
|
+
Style/RedundantArrayFlatten:
|
|
1631
|
+
Enabled: true
|
|
1632
|
+
|
|
1568
1633
|
Style/RedundantAssignment:
|
|
1569
1634
|
Enabled: true
|
|
1570
1635
|
|
|
@@ -1604,6 +1669,9 @@ Style/RedundantFileExtensionInRequire:
|
|
|
1604
1669
|
Style/RedundantFilterChain:
|
|
1605
1670
|
Enabled: false
|
|
1606
1671
|
|
|
1672
|
+
Style/RedundantFormat:
|
|
1673
|
+
Enabled: true
|
|
1674
|
+
|
|
1607
1675
|
Style/RedundantFreeze:
|
|
1608
1676
|
Enabled: true
|
|
1609
1677
|
|
data/config/ruby-2.2.yml
CHANGED
data/config/ruby-2.4.yml
CHANGED
data/config/ruby-2.5.yml
CHANGED
data/config/ruby-3.3.yml
CHANGED
|
@@ -11,7 +11,7 @@ module RubyLsp
|
|
|
11
11
|
def activate(global_state, message_queue)
|
|
12
12
|
@logger = ::Standard::Lsp::Logger.new(prefix: "[Standard Ruby]")
|
|
13
13
|
@logger.puts "Activating Standard Ruby LSP addon v#{::Standard::VERSION}"
|
|
14
|
-
RuboCop::LSP.enable
|
|
14
|
+
::RuboCop::LSP.enable
|
|
15
15
|
@wraps_built_in_lsp_standardizer = WrapsBuiltinLspStandardizer.new
|
|
16
16
|
global_state.register_formatter("standard", @wraps_built_in_lsp_standardizer)
|
|
17
17
|
register_additional_file_watchers(global_state, message_queue)
|
data/lib/standard/lsp/logger.rb
CHANGED
data/lib/standard/rake.rb
CHANGED
|
@@ -25,7 +25,7 @@ task :"standard:fix" do
|
|
|
25
25
|
fail unless exit_code == 0
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
desc "Lint and automatically make fixes (even unsafe ones
|
|
28
|
+
desc "Lint and automatically make fixes (even unsafe ones) with the Standard Ruby style guide"
|
|
29
29
|
task :"standard:fix_unsafely" do
|
|
30
30
|
require "standard"
|
|
31
31
|
exit_code = Standard::Cli.new(Standard::RakeSupport.argvify + ["--fix-unsafely"]).run
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
|
@@ -21,11 +21,11 @@ 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"
|
|
28
|
-
spec.add_dependency "standard-performance", "~> 1.
|
|
28
|
+
spec.add_dependency "standard-performance", "~> 1.8"
|
|
29
29
|
|
|
30
30
|
# not semver: first three are lsp protocol version, last is patch
|
|
31
31
|
spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
|
metadata
CHANGED
|
@@ -1,14 +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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Searls
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-09-12 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rubocop
|
|
@@ -16,14 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
18
|
+
version: 1.80.2
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
25
|
+
version: 1.80.2
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: lint_roller
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,14 +57,14 @@ dependencies:
|
|
|
58
57
|
requirements:
|
|
59
58
|
- - "~>"
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.
|
|
60
|
+
version: '1.8'
|
|
62
61
|
type: :runtime
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.
|
|
67
|
+
version: '1.8'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: language_server-protocol
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,7 +79,6 @@ dependencies:
|
|
|
80
79
|
- - "~>"
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: 3.17.0.2
|
|
83
|
-
description:
|
|
84
82
|
email:
|
|
85
83
|
- searls@gmail.com
|
|
86
84
|
executables:
|
|
@@ -174,7 +172,6 @@ metadata:
|
|
|
174
172
|
source_code_uri: https://github.com/standardrb/standard
|
|
175
173
|
changelog_uri: https://github.com/standardrb/standard/blob/main/CHANGELOG.md
|
|
176
174
|
rubygems_mfa_required: 'true'
|
|
177
|
-
post_install_message:
|
|
178
175
|
rdoc_options: []
|
|
179
176
|
require_paths:
|
|
180
177
|
- lib
|
|
@@ -189,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
186
|
- !ruby/object:Gem::Version
|
|
190
187
|
version: '0'
|
|
191
188
|
requirements: []
|
|
192
|
-
rubygems_version: 3.
|
|
193
|
-
signing_key:
|
|
189
|
+
rubygems_version: 3.6.2
|
|
194
190
|
specification_version: 4
|
|
195
191
|
summary: Ruby Style Guide, with linter & automatic code fixer
|
|
196
192
|
test_files: []
|