standard 1.27.0 → 1.28.1
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 +25 -0
- data/Gemfile +6 -4
- data/Gemfile.lock +11 -8
- 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 +170 -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: e8c0920e71bbf9f203f59f683dfaec09f0b5828546a4b47d9d72079aa2a8fda9
|
4
|
+
data.tar.gz: 53cce6a924e050971619a48ae411dba9e002f0c3cdd48588c3f7a2ee68e20c9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8d4318e2527b6f2d20308caa846ba861a1432a9b1930ebfd2003475eed86dc0b095191cc64f1415a8d6f6130e82923e792cbadfc686eb60401a18026ea8b0df
|
7
|
+
data.tar.gz: e1fa000dc59e5c530a369238ddc1beb75470d10deb191709bc9d84546b39a327bb4bd80ee80202ec81fc788fee8cd8af588ccab75a4f111457336a16af3a9e52
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.28.1
|
4
|
+
|
5
|
+
* Fixes plugin behavior caused by setting `DisabledByDefault: true` in `AllCops`
|
6
|
+
Effectively, a single lint_roller plugin whose `rules` were of type `:object`
|
7
|
+
would inadvertently mark all previously-defined rules as invalid.
|
8
|
+
[#557](https://github.com/standardrb/standard/pull/557)
|
9
|
+
|
10
|
+
## 1.28.0
|
11
|
+
|
12
|
+
* Refactor Standard into 3 gems and convert all built-in configuration into
|
13
|
+
[lint_roller](https://github.com/standardrb/lint_roller) plugins. See:
|
14
|
+
* [standard-performance](https://github.com/standardrb/standard-performance)
|
15
|
+
* [standard-custom](https://github.com/standardrb/standard-custom)
|
16
|
+
* Standard's behavior when merging multiple `extend_config` that change the same
|
17
|
+
set of rules has been fixed to be first-in-wins, as opposed to last-in-wins.
|
18
|
+
This ensures a consistent behavior across plugins and extended configurations,
|
19
|
+
namely that the first thing to configure a given rule effectively locks it
|
20
|
+
from subsequent changes
|
21
|
+
* Enable `DisabledByDefault: true`. This shouldn't impact anyone, but might
|
22
|
+
change the behavior of some `extend_config` users. Because Standard specifies
|
23
|
+
every rule in rubocop and rubocop-performance, this configuration's absence
|
24
|
+
wasn't felt until we went to the plugin system, where it makes much more sense
|
25
|
+
for plugins to _opt-in_ to the cops they want to configure, as opposed to just
|
26
|
+
running every single one that they happen to load/require
|
27
|
+
|
3
28
|
## 1.27.0
|
4
29
|
|
5
30
|
* 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,31 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
4
|
+
standard (1.28.1)
|
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)
|
21
23
|
method_source (1.0.0)
|
22
24
|
minitest (5.18.0)
|
23
25
|
parallel (1.23.0)
|
24
|
-
parser (3.2.2.
|
26
|
+
parser (3.2.2.1)
|
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
|