standard 1.40.0 → 1.41.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/CHANGELOG.md +9 -0
- data/Gemfile.lock +11 -13
- data/README.md +1 -0
- data/config/base.yml +6 -0
- data/config/ruby-2.7.yml +3 -0
- data/lib/standard/lsp/stdin_rubocop_runner.rb +10 -2
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5783cd76c08f27d6214dd56015875768c2e79633269ab0d69b7306f5f07248ec
|
|
4
|
+
data.tar.gz: 020250354ca665d8d04ac7f0b7a4bea6d21d9c0d3c3b249a0f881b4837554e76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9514e93a8088a12131db5d67275ddf7d1f5a28b7db3fff9b77dcb8397d234d48f20da3af8e81ebc80dd6d914a18937595ea3d767d05292833eeb7e4e405b17d3
|
|
7
|
+
data.tar.gz: 3eb7c7739a73e29c2f98991a53be149b8cf5bd7defab37759a069832637def6078c9e131acc9201075559d2d0f091af988d9d61eaa9505a5ac307471dd14e9ac
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.41.0
|
|
6
|
+
|
|
7
|
+
* Updates rubocop to [1.66.1](https://github.com/rubocop/rubocop/releases/tag/v1.66.1)
|
|
8
|
+
* Updates standard-performance to [1.5.0](https://github.com/standardrb/standard-performance/releases/tag/v1.5.0)
|
|
9
|
+
|
|
10
|
+
## 1.40.1
|
|
11
|
+
|
|
12
|
+
* Fix error handling in LSP Server 84ee9f4
|
|
13
|
+
|
|
5
14
|
## 1.40.0
|
|
6
15
|
|
|
7
16
|
* Updates rubocop to [1.65.1](https://github.com/rubocop/rubocop/releases/tag/v1.65.1)
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
standard (1.
|
|
4
|
+
standard (1.41.0)
|
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
|
6
6
|
lint_roller (~> 1.0)
|
|
7
|
-
rubocop (~> 1.
|
|
7
|
+
rubocop (~> 1.66.0)
|
|
8
8
|
standard-custom (~> 1.0.0)
|
|
9
|
-
standard-performance (~> 1.
|
|
9
|
+
standard-performance (~> 1.5)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
@@ -24,7 +24,7 @@ GEM
|
|
|
24
24
|
minitest (5.20.0)
|
|
25
25
|
mutex_m (0.2.0)
|
|
26
26
|
parallel (1.23.0)
|
|
27
|
-
parser (3.3.0
|
|
27
|
+
parser (3.3.5.0)
|
|
28
28
|
ast (~> 2.4.1)
|
|
29
29
|
racc
|
|
30
30
|
prism (0.30.0)
|
|
@@ -34,21 +34,19 @@ GEM
|
|
|
34
34
|
rbs (3.5.2)
|
|
35
35
|
logger
|
|
36
36
|
regexp_parser (2.8.2)
|
|
37
|
-
|
|
38
|
-
rubocop (1.65.1)
|
|
37
|
+
rubocop (1.66.1)
|
|
39
38
|
json (~> 2.3)
|
|
40
39
|
language_server-protocol (>= 3.17.0)
|
|
41
40
|
parallel (~> 1.10)
|
|
42
41
|
parser (>= 3.3.0.2)
|
|
43
42
|
rainbow (>= 2.2.2, < 4.0)
|
|
44
43
|
regexp_parser (>= 2.4, < 3.0)
|
|
45
|
-
|
|
46
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
44
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
|
47
45
|
ruby-progressbar (~> 1.7)
|
|
48
46
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
49
|
-
rubocop-ast (1.
|
|
50
|
-
parser (>= 3.3.0
|
|
51
|
-
rubocop-performance (1.
|
|
47
|
+
rubocop-ast (1.32.3)
|
|
48
|
+
parser (>= 3.3.1.0)
|
|
49
|
+
rubocop-performance (1.22.1)
|
|
52
50
|
rubocop (>= 1.48.1, < 2.0)
|
|
53
51
|
rubocop-ast (>= 1.31.1, < 2.0)
|
|
54
52
|
ruby-lsp (0.17.7)
|
|
@@ -67,9 +65,9 @@ GEM
|
|
|
67
65
|
standard-custom (1.0.2)
|
|
68
66
|
lint_roller (~> 1.0)
|
|
69
67
|
rubocop (~> 1.50)
|
|
70
|
-
standard-performance (1.
|
|
68
|
+
standard-performance (1.5.0)
|
|
71
69
|
lint_roller (~> 1.1)
|
|
72
|
-
rubocop-performance (~> 1.
|
|
70
|
+
rubocop-performance (~> 1.22.0)
|
|
73
71
|
unicode-display_width (2.5.0)
|
|
74
72
|
|
|
75
73
|
PLATFORMS
|
data/README.md
CHANGED
|
@@ -509,6 +509,7 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
|
|
|
509
509
|
* [Planet Argon](https://www.planetargon.com/)
|
|
510
510
|
* [PLT4M](https://plt4m.com/)
|
|
511
511
|
* [Podia](https://www.podia.com/)
|
|
512
|
+
* [Privy](https://www.privy.com/)
|
|
512
513
|
* [Rebase Interactive](https://www.rebaseinteractive.com/)
|
|
513
514
|
* [Renuo](https://www.renuo.ch/)
|
|
514
515
|
* [RubyCI](https://ruby.ci)
|
data/config/base.yml
CHANGED
|
@@ -837,6 +837,9 @@ Lint/UselessElseWithoutRescue:
|
|
|
837
837
|
Lint/UselessMethodDefinition:
|
|
838
838
|
Enabled: false
|
|
839
839
|
|
|
840
|
+
Lint/UselessNumericOperation:
|
|
841
|
+
Enabled: false
|
|
842
|
+
|
|
840
843
|
Lint/UselessRescue:
|
|
841
844
|
Enabled: true
|
|
842
845
|
|
|
@@ -1577,6 +1580,9 @@ Style/RedundantInitialize:
|
|
|
1577
1580
|
Style/RedundantInterpolation:
|
|
1578
1581
|
Enabled: true
|
|
1579
1582
|
|
|
1583
|
+
Style/RedundantInterpolationUnfreeze:
|
|
1584
|
+
Enabled: true
|
|
1585
|
+
|
|
1580
1586
|
Style/RedundantLineContinuation:
|
|
1581
1587
|
Enabled: true
|
|
1582
1588
|
|
data/config/ruby-2.7.yml
CHANGED
|
@@ -42,11 +42,19 @@ module Standard
|
|
|
42
42
|
|
|
43
43
|
raise Interrupt if aborting?
|
|
44
44
|
rescue ::RuboCop::Runner::InfiniteCorrectionLoop => error
|
|
45
|
-
|
|
45
|
+
if defined?(::RubyLsp::Requests::Formatting::Error)
|
|
46
|
+
raise ::RubyLsp::Requests::Formatting::Error, error.message
|
|
47
|
+
else
|
|
48
|
+
raise error
|
|
49
|
+
end
|
|
46
50
|
rescue ::RuboCop::ValidationError => error
|
|
47
51
|
raise ConfigurationError, error.message
|
|
48
52
|
rescue => error
|
|
49
|
-
|
|
53
|
+
if defined?(::RubyLsp::Requests::Formatting::Error)
|
|
54
|
+
raise ::RubyLsp::Requests::Support::InternalRuboCopError, error
|
|
55
|
+
else
|
|
56
|
+
raise error
|
|
57
|
+
end
|
|
50
58
|
end
|
|
51
59
|
|
|
52
60
|
def formatted_source
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
|
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.require_paths = ["lib"]
|
|
24
24
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
25
25
|
|
|
26
|
-
spec.add_dependency "rubocop", "~> 1.
|
|
26
|
+
spec.add_dependency "rubocop", "~> 1.66.0"
|
|
27
27
|
|
|
28
28
|
spec.add_dependency "lint_roller", "~> 1.0"
|
|
29
29
|
spec.add_dependency "standard-custom", "~> 1.0.0"
|
|
30
|
-
spec.add_dependency "standard-performance", "~> 1.
|
|
30
|
+
spec.add_dependency "standard-performance", "~> 1.5"
|
|
31
31
|
|
|
32
32
|
# not semver: first three are lsp protocol version, last is patch
|
|
33
33
|
spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
|
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.41.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Searls
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-08
|
|
11
|
+
date: 2024-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.66.0
|
|
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.66.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: lint_roller
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.
|
|
61
|
+
version: '1.5'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.
|
|
68
|
+
version: '1.5'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: language_server-protocol
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|