standard 1.3.0 → 1.4.0
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 +9 -0
- data/Gemfile.lock +7 -7
- data/README.md +19 -0
- data/Rakefile +0 -2
- data/config/base.yml +609 -4
- data/config/ruby-2.5.yml +1 -1
- data/config/ruby-2.6.yml +10 -0
- data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +6 -2
- data/lib/standard/creates_config_store/sets_target_ruby_version.rb +6 -2
- data/lib/standard/formatter.rb +25 -2
- data/lib/standard/loads_yaml_config.rb +7 -1
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e36f4f1ee4469b120c342114edfa1c13bcf274a3ffa284270dd1073ae18e59e
|
4
|
+
data.tar.gz: fcf9ced42b9ead731855ded83be22b21dc6834ffb4691c4a135d3d7930b642e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcaeeb627fe5d10f10dfecea5ae64d7366a20c11cf07d5e899b188f3939629ab84a07ab445e286e82c860a0c479e3f5c21a2897d5420ac8e3fa06527d92e6493
|
7
|
+
data.tar.gz: b9b5ad19932484145a3fce2f2b9cb44e480bddeaedc6f806390776730d7c51d5f2a1902ad4a4d9c8b469e2002e1f6ed061b9fab22312bcf7c383ed14b7c97790
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
* Remove
|
6
|
+
[`Style/NegatedIf`](https://github.com/TODO)
|
7
|
+
|
8
|
+
## 1.4.0
|
9
|
+
|
10
|
+
* Update rubocop from 1.19.1 to [1.22.3](https://github.com/rubocop-hq/rubocop/releases/tag/v1.22.3)
|
11
|
+
|
3
12
|
## 1.3.0
|
4
13
|
|
5
14
|
* Update rubocop from 1.19.1 to [1.20.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.20.0)
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
5
|
-
rubocop (= 1.
|
4
|
+
standard (1.4.0)
|
5
|
+
rubocop (= 1.22.3)
|
6
6
|
rubocop-performance (= 1.11.5)
|
7
7
|
|
8
8
|
GEM
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
gimme (0.5.0)
|
15
15
|
method_source (1.0.0)
|
16
16
|
minitest (5.14.4)
|
17
|
-
parallel (1.
|
17
|
+
parallel (1.21.0)
|
18
18
|
parser (3.0.2.0)
|
19
19
|
ast (~> 2.4.1)
|
20
20
|
pry (0.14.1)
|
@@ -24,16 +24,16 @@ GEM
|
|
24
24
|
rake (13.0.6)
|
25
25
|
regexp_parser (2.1.1)
|
26
26
|
rexml (3.2.5)
|
27
|
-
rubocop (1.
|
27
|
+
rubocop (1.22.3)
|
28
28
|
parallel (~> 1.10)
|
29
29
|
parser (>= 3.0.0.0)
|
30
30
|
rainbow (>= 2.2.2, < 4.0)
|
31
31
|
regexp_parser (>= 1.8, < 3.0)
|
32
32
|
rexml
|
33
|
-
rubocop-ast (>= 1.
|
33
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
34
34
|
ruby-progressbar (~> 1.7)
|
35
35
|
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
-
rubocop-ast (1.
|
36
|
+
rubocop-ast (1.12.0)
|
37
37
|
parser (>= 3.0.1.1)
|
38
38
|
rubocop-performance (1.11.5)
|
39
39
|
rubocop (>= 1.7.0, < 2.0)
|
@@ -45,7 +45,7 @@ GEM
|
|
45
45
|
simplecov_json_formatter (~> 0.1)
|
46
46
|
simplecov-html (0.12.3)
|
47
47
|
simplecov_json_formatter (0.1.3)
|
48
|
-
unicode-display_width (2.
|
48
|
+
unicode-display_width (2.1.0)
|
49
49
|
|
50
50
|
PLATFORMS
|
51
51
|
ruby
|
data/README.md
CHANGED
@@ -190,6 +190,22 @@ community conventions higher than personal style. This might not make sense for
|
|
190
190
|
place for newbies. Setting up clear, automated contributor expectations makes a
|
191
191
|
project healthier.
|
192
192
|
|
193
|
+
## Usage via rubocop
|
194
|
+
|
195
|
+
If you only want to use the rules and not the cli (to keep current IDE/tooling/workflow support).
|
196
|
+
It needs to repeat `AllCops` because of a [rubocop issue](https://github.com/rubocop/rubocop/issues/10175).
|
197
|
+
Change your `.rubocop.yml` to:
|
198
|
+
|
199
|
+
```yaml
|
200
|
+
require: standard
|
201
|
+
|
202
|
+
inherit_gem:
|
203
|
+
standard: config/base.yml
|
204
|
+
|
205
|
+
AllCops:
|
206
|
+
DisabledByDefault: true
|
207
|
+
```
|
208
|
+
|
193
209
|
## Who uses Ruby Standard Style?
|
194
210
|
|
195
211
|
(This section will not [look very
|
@@ -214,6 +230,9 @@ if you've used StandardJS.)
|
|
214
230
|
* [Oyster](https://www.oysterhr.com/)
|
215
231
|
* [Podia](https://www.podia.com/)
|
216
232
|
* [RubyCI](https://ruby.ci)
|
233
|
+
* [thoughtbot](https://thoughtbot.com/)
|
234
|
+
* [Planet Argon](https://www.planetargon.com/)
|
235
|
+
* [Brave Software](https://github.com/brave-intl/publishers)
|
217
236
|
* And that's about it so far!
|
218
237
|
|
219
238
|
If your team starts using Standard, [send a pull
|