standard 1.28.2 → 1.30.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +36 -0
- data/Gemfile.lock +14 -12
- data/README.md +6 -0
- data/config/base.yml +11 -0
- data/config/ruby-1.8.yml +3 -0
- data/config/ruby-1.9.yml +4 -0
- data/config/ruby-3.1.yml +1 -1
- data/config/ruby-3.2.yml +4 -0
- data/docs/ARCHITECTURE.md +3 -1
- data/lib/standard/base/plugin.rb +2 -0
- data/lib/standard/creates_config_store.rb +1 -1
- data/lib/standard/lsp/routes.rb +4 -0
- data/lib/standard/version.rb +1 -1
- data/lib/standard.rb +0 -1
- data/standard.gemspec +2 -2
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c00678665803420723c8674b59d3c618e2164a9e469946ccccabed971f56149
|
4
|
+
data.tar.gz: 738c3f9610cb74a41aac35aec29348e6282b6f8018ed83dd80f831e723081e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69eb144ed7790c19699edaf481ab4caf3b3805039ef94b180d711846767a352cdb87cdc71daeafd5240a78b6cda85573ee248605257d05641046d3a22165667a
|
7
|
+
data.tar.gz: 7ea6b6cd83b1768181ab075fa7f408281da76b22dff644c2ff1e7425543a8606a2a0f6ee81b59f69e46bcab53d0c176caa2d7034bc6dc16f57bb893797ffaa38
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,41 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.30.1
|
4
|
+
|
5
|
+
* Just kidding about about `Standard::PluginSupport`. Moving it to `LintRoller::Support`
|
6
|
+
to avoid circular dependencies between Standard Ruby and its plugins
|
7
|
+
|
8
|
+
## 1.30.0
|
9
|
+
|
10
|
+
* Add `Standard::PluginSupport` module of classes designed to make it a little
|
11
|
+
easier to author plugins. `MergesUpstreamMetadata#merge` will allow a minimal
|
12
|
+
YAML config (say, `standard-sorbet`'s, which only contains `Enabled` values for
|
13
|
+
each rule) to merge in any other defaults from a source YAML (e.g.
|
14
|
+
`rubocop-sorbet`'s which includes `Description`, `VersionAdded`, and so on).
|
15
|
+
This way that metadata is neither absent at runtime nor duplicated in a standard
|
16
|
+
plugin that mirrors a rubocop extension
|
17
|
+
|
18
|
+
## 1.29.0
|
19
|
+
|
20
|
+
* Updates standard-performance to [1.1.0](https://github.com/standardrb/standard-performance/releases/tag/v1.1.0)
|
21
|
+
* Updates rubocop to [1.52.0](https://github.com/rubocop/rubocop/releases/tag/v1.52.0)
|
22
|
+
* Enables Style/ExactRegexpMatch, Style/RedundantArrayConstructor, Style/RedundantFilterChain, Style/RedundantRegexpConstructor
|
23
|
+
|
24
|
+
## 1.28.5
|
25
|
+
|
26
|
+
* Make LSP behave more nicely with nvim-lspconfig [#564](https://github.com/standardrb/standard/pull/564)
|
27
|
+
|
28
|
+
## 1.28.4
|
29
|
+
|
30
|
+
* Fix [standard-rails#7](https://github.com/standardrb/standard-rails/issues/7#issuecomment-1563505365)
|
31
|
+
|
32
|
+
## 1.28.3
|
33
|
+
|
34
|
+
* Older ruby support fixes from [@pboling](https://github.com/pboling):
|
35
|
+
- [#559](https://github.com/standardrb/standard/issues/559)
|
36
|
+
- [#561](https://github.com/standardrb/standard/issues/560)
|
37
|
+
- [#561](https://github.com/standardrb/standard/issues/561)
|
38
|
+
|
3
39
|
## 1.28.2
|
4
40
|
|
5
41
|
* Attempts to fix the not-actually fixed plugin behavior in 1.28.1
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
4
|
+
standard (1.30.1)
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
6
6
|
lint_roller (~> 1.0)
|
7
|
-
rubocop (~> 1.
|
7
|
+
rubocop (~> 1.52.0)
|
8
8
|
standard-custom (~> 1.0.0)
|
9
|
-
standard-performance (~> 1.0
|
9
|
+
standard-performance (~> 1.1.0)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
@@ -23,25 +23,27 @@ GEM
|
|
23
23
|
method_source (1.0.0)
|
24
24
|
minitest (5.18.0)
|
25
25
|
parallel (1.23.0)
|
26
|
-
parser (3.2.2.
|
26
|
+
parser (3.2.2.3)
|
27
27
|
ast (~> 2.4.1)
|
28
|
+
racc
|
29
|
+
racc (1.7.1)
|
28
30
|
rainbow (3.1.1)
|
29
31
|
rake (13.0.6)
|
30
|
-
regexp_parser (2.8.
|
32
|
+
regexp_parser (2.8.1)
|
31
33
|
rexml (3.2.5)
|
32
|
-
rubocop (1.
|
34
|
+
rubocop (1.52.1)
|
33
35
|
json (~> 2.3)
|
34
36
|
parallel (~> 1.10)
|
35
|
-
parser (>= 3.2.
|
37
|
+
parser (>= 3.2.2.3)
|
36
38
|
rainbow (>= 2.2.2, < 4.0)
|
37
39
|
regexp_parser (>= 1.8, < 3.0)
|
38
40
|
rexml (>= 3.2.5, < 4.0)
|
39
41
|
rubocop-ast (>= 1.28.0, < 2.0)
|
40
42
|
ruby-progressbar (~> 1.7)
|
41
43
|
unicode-display_width (>= 2.4.0, < 3.0)
|
42
|
-
rubocop-ast (1.
|
44
|
+
rubocop-ast (1.29.0)
|
43
45
|
parser (>= 3.2.1.0)
|
44
|
-
rubocop-performance (1.
|
46
|
+
rubocop-performance (1.18.0)
|
45
47
|
rubocop (>= 1.7.0, < 2.0)
|
46
48
|
rubocop-ast (>= 0.4.0)
|
47
49
|
ruby-progressbar (1.13.0)
|
@@ -51,11 +53,11 @@ GEM
|
|
51
53
|
simplecov_json_formatter (~> 0.1)
|
52
54
|
simplecov-html (0.12.3)
|
53
55
|
simplecov_json_formatter (0.1.4)
|
54
|
-
standard-custom (1.0.
|
56
|
+
standard-custom (1.0.1)
|
55
57
|
lint_roller (~> 1.0)
|
56
|
-
standard-performance (1.0
|
58
|
+
standard-performance (1.1.0)
|
57
59
|
lint_roller (~> 1.0)
|
58
|
-
rubocop-performance (~> 1.
|
60
|
+
rubocop-performance (~> 1.18.0)
|
59
61
|
unicode-display_width (2.4.2)
|
60
62
|
|
61
63
|
PLATFORMS
|
data/README.md
CHANGED
@@ -432,6 +432,11 @@ extend_config:
|
|
432
432
|
|
433
433
|
### Running Standard's rules via RuboCop
|
434
434
|
|
435
|
+
**Please note that the following usage is not supported and may break at any
|
436
|
+
time. Use at your own risk and please refrain from opening GitHub issues with
|
437
|
+
respect to loading Standard or its plugins' YAML configurations for use by
|
438
|
+
the `rubocop` CLI.**
|
439
|
+
|
435
440
|
If you find that neither plugins or configuration extensions meet your needs or
|
436
441
|
if you have some other reason to run Standard's rules with RuboCop's CLI (e.g.,
|
437
442
|
to continue using your favorite IDE/tooling/workflow with RuboCop support) Evil
|
@@ -466,6 +471,7 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
|
|
466
471
|
* [Brave Software](https://github.com/brave-intl/publishers)
|
467
472
|
* [Collective Idea](https://collectiveidea.com/)
|
468
473
|
* [Culture Foundry](https://www.culturefoundry.com/)
|
474
|
+
* [Donut](https://www.donut.com/)
|
469
475
|
* [Elevate Labs](https://elevatelabs.com)
|
470
476
|
* [Envoy](https://www.envoy.com)
|
471
477
|
* [Evil Martians](https://evilmartians.com)
|
data/config/base.yml
CHANGED
@@ -1153,6 +1153,8 @@ Style/EvalWithLocation:
|
|
1153
1153
|
Style/EvenOdd:
|
1154
1154
|
Enabled: false
|
1155
1155
|
|
1156
|
+
Style/ExactRegexpMatch:
|
1157
|
+
Enabled: true
|
1156
1158
|
Style/ExpandPathArguments:
|
1157
1159
|
Enabled: false
|
1158
1160
|
|
@@ -1498,6 +1500,9 @@ Style/RandomWithOffset:
|
|
1498
1500
|
Style/RedundantArgument:
|
1499
1501
|
Enabled: false
|
1500
1502
|
|
1503
|
+
Style/RedundantArrayConstructor:
|
1504
|
+
Enabled: true
|
1505
|
+
|
1501
1506
|
Style/RedundantAssignment:
|
1502
1507
|
Enabled: true
|
1503
1508
|
|
@@ -1531,6 +1536,9 @@ Style/RedundantFetchBlock:
|
|
1531
1536
|
Style/RedundantFileExtensionInRequire:
|
1532
1537
|
Enabled: true
|
1533
1538
|
|
1539
|
+
Style/RedundantFilterChain:
|
1540
|
+
Enabled: false
|
1541
|
+
|
1534
1542
|
Style/RedundantFreeze:
|
1535
1543
|
Enabled: true
|
1536
1544
|
|
@@ -1555,6 +1563,9 @@ Style/RedundantPercentQ:
|
|
1555
1563
|
Style/RedundantRegexpCharacterClass:
|
1556
1564
|
Enabled: true
|
1557
1565
|
|
1566
|
+
Style/RedundantRegexpConstructor:
|
1567
|
+
Enabled: true
|
1568
|
+
|
1558
1569
|
Style/RedundantRegexpEscape:
|
1559
1570
|
Enabled: true
|
1560
1571
|
|
data/config/ruby-1.8.yml
CHANGED
data/config/ruby-1.9.yml
CHANGED
data/config/ruby-3.1.yml
CHANGED
data/config/ruby-3.2.yml
ADDED
data/docs/ARCHITECTURE.md
CHANGED
@@ -8,7 +8,9 @@ buried.
|
|
8
8
|
Starting with version 1.28.0, Standard Ruby introduced plugin support and
|
9
9
|
refactored how it loads its own rules from one large YAML file into several
|
10
10
|
plugins. As a result, what was a single `standard` gem is now spread across 3
|
11
|
-
gems.
|
11
|
+
gems.
|
12
|
+
|
13
|
+
Here's how it's all organized:
|
12
14
|
|
13
15
|
* [standard](https://github.com/standardrb/standard) - The main gem. The one
|
14
16
|
people install and think of. Because `standard` has a hard dependency on `rubocop`,
|
data/lib/standard/base/plugin.rb
CHANGED
@@ -19,9 +19,9 @@ module Standard
|
|
19
19
|
RuboCop::ConfigStore.new.tap do |config_store|
|
20
20
|
options_config = @assigns_rubocop_yaml.call(config_store, standard_config)
|
21
21
|
@sets_target_ruby_version.call(options_config, standard_config)
|
22
|
-
@configures_ignored_paths.call(options_config, standard_config)
|
23
22
|
@combines_plugin_configs.call(options_config, standard_config)
|
24
23
|
@merges_user_config_extensions.call(options_config, standard_config)
|
24
|
+
@configures_ignored_paths.call(options_config, standard_config)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/standard/lsp/routes.rb
CHANGED
@@ -75,6 +75,10 @@ module Standard
|
|
75
75
|
@writer.write({id: request[:id], result: format_file(uri)})
|
76
76
|
end
|
77
77
|
|
78
|
+
handle "workspace/didChangeConfiguration" do |_request|
|
79
|
+
@logger.puts "Ignoring workspace/didChangeConfiguration"
|
80
|
+
end
|
81
|
+
|
78
82
|
handle "workspace/didChangeWatchedFiles" do |request|
|
79
83
|
if request[:params][:changes].any? { |change| change[:uri].end_with?(".standard.yml") }
|
80
84
|
@logger.puts "Configuration file changed; restart required"
|
data/lib/standard/version.rb
CHANGED
data/lib/standard.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.52.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.0
|
30
|
+
spec.add_dependency "standard-performance", "~> 1.1.0"
|
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.30.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-07 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.52.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.52.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.0
|
61
|
+
version: 1.1.0
|
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.0
|
68
|
+
version: 1.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: language_server-protocol
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- config/ruby-2.7.yml
|
117
117
|
- config/ruby-3.0.yml
|
118
118
|
- config/ruby-3.1.yml
|
119
|
+
- config/ruby-3.2.yml
|
119
120
|
- docs/ARCHITECTURE.md
|
120
121
|
- docs/NEW_RUBIES.md
|
121
122
|
- docs/RELEASE.md
|
@@ -181,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
182
|
- !ruby/object:Gem::Version
|
182
183
|
version: '0'
|
183
184
|
requirements: []
|
184
|
-
rubygems_version: 3.4.
|
185
|
+
rubygems_version: 3.4.14
|
185
186
|
signing_key:
|
186
187
|
specification_version: 4
|
187
188
|
summary: Ruby Style Guide, with linter & automatic code fixer
|