standard 1.27.0 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile +6 -4
- data/Gemfile.lock +10 -7
- data/LICENSE.txt +3 -4
- data/README.md +353 -465
- data/bin/console +0 -4
- data/bin/run +9 -0
- data/config/base.yml +0 -161
- data/config/default.yml +9 -0
- data/config/ruby-2.2.yml +0 -3
- data/docs/ARCHITECTURE.md +31 -0
- data/lib/standard/base/plugin.rb +65 -0
- data/lib/standard/base.rb +8 -0
- data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +1 -35
- data/lib/standard/creates_config_store/merges_user_config_extensions.rb +21 -51
- data/lib/standard/creates_config_store.rb +2 -0
- data/lib/standard/formatter.rb +1 -1
- data/lib/standard/loads_yaml_config.rb +1 -0
- data/lib/standard/plugin/combines_plugin_configs.rb +15 -0
- data/lib/standard/plugin/creates_runner_context.rb +15 -0
- data/lib/standard/plugin/determines_class_constant.rb +56 -0
- data/lib/standard/plugin/initializes_plugins.rb +23 -0
- data/lib/standard/plugin/merges_plugins_into_rubocop_config.rb +158 -0
- data/lib/standard/plugin/standardizes_configured_plugins.rb +37 -0
- data/lib/standard/plugin.rb +11 -0
- data/lib/standard/railtie.rb +1 -1
- data/lib/standard/runners/help.rb +2 -2
- data/lib/standard/runners/rubocop.rb +1 -1
- data/lib/standard/version.rb +1 -1
- data/lib/standard.rb +5 -2
- data/standard.gemspec +5 -2
- metadata +54 -15
- data/lib/standard/cop/block_single_line_braces.rb +0 -96
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f90048ed9d5a6f7fb709f72f0ce48e3afca1207f4b75ec7673baaa77b7a15ed8
|
4
|
+
data.tar.gz: e29c6e2e9c919611bfaf1ec1fb2907c0bb2552eb06a7a4340e45140ec0c0a2ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53482d43182ade55a2828dd8fbd877c54dfc88cddf7dfdc842fb6a2ade273930fd43422dac37687f42617bfc35d2c65ac2b11211abad4e4d7f1a5409b5fa6cf3
|
7
|
+
data.tar.gz: 84a62318f010f8361e94120f579fe24eca5d0ae7efc3cabe7175817f6ce799857ce95abbf59acfe3d898396464cd55231b2d29fd80dbfe781a9a561401e87312
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.28.0
|
4
|
+
|
5
|
+
* Refactor Standard into 3 gems and convert all built-in configuration into
|
6
|
+
[lint_roller](https://github.com/standardrb/lint_roller) plugins. See:
|
7
|
+
* [standard-performance](https://github.com/standardrb/standard-performance)
|
8
|
+
* [standard-custom](https://github.com/standardrb/standard-custom)
|
9
|
+
* Standard's behavior when merging multiple `extend_config` that change the same
|
10
|
+
set of rules has been fixed to be first-in-wins, as opposed to last-in-wins.
|
11
|
+
This ensures a consistent behavior across plugins and extended configurations,
|
12
|
+
namely that the first thing to configure a given rule effectively locks it
|
13
|
+
from subsequent changes
|
14
|
+
* Enable `DisabledByDefault: true`. This shouldn't impact anyone, but might
|
15
|
+
change the behavior of some `extend_config` users. Because Standard specifies
|
16
|
+
every rule in rubocop and rubocop-performance, this configuration's absence
|
17
|
+
wasn't felt until we went to the plugin system, where it makes much more sense
|
18
|
+
for plugins to _opt-in_ to the cops they want to configure, as opposed to just
|
19
|
+
running every single one that they happen to load/require
|
20
|
+
|
3
21
|
## 1.27.0
|
4
22
|
|
5
23
|
* Update rubocop from 1.48.1 to [1.50.2](https://github.com/rubocop/rubocop/releases/tag/v1.50.2)
|
data/Gemfile
CHANGED
@@ -4,11 +4,13 @@ gemspec
|
|
4
4
|
|
5
5
|
gem "bundler"
|
6
6
|
gem "minitest", "~> 5.0"
|
7
|
-
gem "pry"
|
8
7
|
gem "rake", "~> 13.0"
|
9
8
|
gem "gimme"
|
10
9
|
gem "m"
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
# You may want to run these off path locally:
|
12
|
+
# gem "lint_roller", path: "../lint_roller"
|
13
|
+
# gem "standard-custom", path: "../standard-custom"
|
14
|
+
# gem "standard-performance", path: "../standard-performance"
|
15
|
+
|
16
|
+
gem "simplecov"
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
4
|
+
standard (1.28.0)
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
6
|
+
lint_roller (~> 1.0)
|
6
7
|
rubocop (~> 1.50.2)
|
7
|
-
|
8
|
+
standard-custom (~> 1.0.0)
|
9
|
+
standard-performance (~> 1.0.1)
|
8
10
|
|
9
11
|
GEM
|
10
12
|
remote: https://rubygems.org/
|
11
13
|
specs:
|
12
14
|
ast (2.4.2)
|
13
|
-
coderay (1.1.3)
|
14
15
|
docile (1.4.0)
|
15
16
|
gimme (0.5.0)
|
16
17
|
json (2.6.3)
|
17
18
|
language_server-protocol (3.17.0.3)
|
19
|
+
lint_roller (1.0.0)
|
18
20
|
m (1.6.1)
|
19
21
|
method_source (>= 0.6.7)
|
20
22
|
rake (>= 0.9.2.2)
|
@@ -23,9 +25,6 @@ GEM
|
|
23
25
|
parallel (1.23.0)
|
24
26
|
parser (3.2.2.0)
|
25
27
|
ast (~> 2.4.1)
|
26
|
-
pry (0.14.2)
|
27
|
-
coderay (~> 1.1)
|
28
|
-
method_source (~> 1.0)
|
29
28
|
rainbow (3.1.1)
|
30
29
|
rake (13.0.6)
|
31
30
|
regexp_parser (2.8.0)
|
@@ -52,6 +51,11 @@ GEM
|
|
52
51
|
simplecov_json_formatter (~> 0.1)
|
53
52
|
simplecov-html (0.12.3)
|
54
53
|
simplecov_json_formatter (0.1.4)
|
54
|
+
standard-custom (1.0.0)
|
55
|
+
lint_roller (~> 1.0)
|
56
|
+
standard-performance (1.0.1)
|
57
|
+
lint_roller (~> 1.0)
|
58
|
+
rubocop-performance (~> 1.16.0)
|
55
59
|
unicode-display_width (2.4.2)
|
56
60
|
|
57
61
|
PLATFORMS
|
@@ -63,7 +67,6 @@ DEPENDENCIES
|
|
63
67
|
gimme
|
64
68
|
m
|
65
69
|
minitest (~> 5.0)
|
66
|
-
pry
|
67
70
|
rake (~> 13.0)
|
68
71
|
simplecov
|
69
72
|
standard!
|
data/LICENSE.txt
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2023 Test Double, Inc.
|
2
2
|
|
3
|
-
Portions of these files Copyright (c)
|
3
|
+
Portions of these files Copyright (c) Bozhidar Batsov:
|
4
4
|
- config/base.yml
|
5
|
-
- lib/standard/
|
6
|
-
- test/cop_invoker.rb
|
5
|
+
- lib/standard/plugin/merges_plugins_into_rubocop_config.rb
|
7
6
|
|
8
7
|
Permission is hereby granted, free of charge, to any person obtaining
|
9
8
|
a copy of this software and associated documentation files (the
|