standard 1.1.7 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/test.yml +1 -1
- data/.github/workflows/update.yml +52 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +10 -10
- data/README.md +19 -0
- data/Rakefile +0 -2
- data/config/base.yml +622 -4
- data/config/ruby-2.2.yml +3 -0
- 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 +2 -2
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981607eacda9cd109ef6934f2aec50efef936e8c2f8c999e0ff2d09a2d71590a
|
4
|
+
data.tar.gz: 45263d2025da0a33aed7a6fb213942601f4b3e4cf542cd0a44de8b1f32df9cc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c29eed2f16d6698b779672977ee76ddc895463c92aaedc185e70263a41569e9ab7c1f3fddc5a7f3a84cb1ab4be3ca695939b8a5ed1df9a6bb427459af9d83b
|
7
|
+
data.tar.gz: f43c126937613621c350a47583bd1f3c2c71a79d6bbd9f1524a1bb03abc9318ae23356d4425cfa36610cbb3a1f546c340dbf82b0707ef5f02780c38abd630ac1
|
data/.github/workflows/test.yml
CHANGED
@@ -0,0 +1,52 @@
|
|
1
|
+
name: Update
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
schedule:
|
6
|
+
- cron: '5 7 * * 1'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
update:
|
10
|
+
name: Check for updates
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 3.0.0
|
20
|
+
bundler-cache: true
|
21
|
+
- name: Unset bundler deployment
|
22
|
+
run: bundle config unset deployment
|
23
|
+
- name: Get Outdated
|
24
|
+
id: outdated
|
25
|
+
run: |
|
26
|
+
eval "$(bundle outdated rubocop rubocop-performance |
|
27
|
+
grep rubocop |
|
28
|
+
awk '{print "echo \"::set-output name="$1"_OLD::"$2"\"; echo \"::set-output name="$1"_NEW::"$3"\";"}' - )";
|
29
|
+
- name: Update Changelog
|
30
|
+
run: |
|
31
|
+
eval "$(bundle outdated rubocop rubocop-performance |
|
32
|
+
grep rubocop |
|
33
|
+
awk '{print "sed -i \"2i* Update "$1" from "$2" to ["$3"](https://github.com/rubocop/"$1"/tag/v"$3")\" CHANGELOG.md"}' - )";
|
34
|
+
sed -i '2i\\n## Unreleased\n' CHANGELOG.md;
|
35
|
+
- name: Update Gemspec
|
36
|
+
run: |
|
37
|
+
eval "$(bundle outdated rubocop rubocop-performance |
|
38
|
+
grep rubocop |
|
39
|
+
awk '{print "sed -i /\"" $1 "\"/s/" $2 "/" $3 "/ standard.gemspec"}' - )"
|
40
|
+
- name: Update Gemfile
|
41
|
+
run: bundle update
|
42
|
+
- name: Get current date
|
43
|
+
id: date
|
44
|
+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
45
|
+
- name: Create Pull Request
|
46
|
+
uses: peter-evans/create-pull-request@v3
|
47
|
+
with:
|
48
|
+
reviewers: camilopayan
|
49
|
+
commit-message: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
|
50
|
+
title: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
|
51
|
+
delete-branch: true
|
52
|
+
branch: update-deps-${{ steps.date.outputs.date }}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.5.0
|
4
|
+
|
5
|
+
* Update rubocop-performance from 1.11.5 to [1.12.0](https://github.com/rubocop/rubocop-performance/tag/v1.12.0)
|
6
|
+
* Update rubocop from 1.22.3 to [1.23.0](https://github.com/rubocop/rubocop/tag/v1.23.0)
|
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
|
+
* Remove [`Style/NegatedIf`](https://github.com/TODO)
|
12
|
+
|
13
|
+
## 1.3.0
|
14
|
+
|
15
|
+
* Update rubocop from 1.19.1 to [1.20.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.20.0)
|
16
|
+
|
17
|
+
## 1.2.0
|
18
|
+
|
19
|
+
* Update rubocop from 1.18.4 to [1.19.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.19.1)
|
20
|
+
* Update rubocop-performance from 1.11.4 to [1.11.5](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.11.5)
|
21
|
+
|
3
22
|
## 1.1.7
|
4
23
|
|
5
24
|
* Fix an issue with nested generated todos being ignored
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
5
|
-
rubocop (= 1.
|
6
|
-
rubocop-performance (= 1.
|
4
|
+
standard (1.5.0)
|
5
|
+
rubocop (= 1.23.0)
|
6
|
+
rubocop-performance (= 1.12.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -14,8 +14,8 @@ GEM
|
|
14
14
|
gimme (0.5.0)
|
15
15
|
method_source (1.0.0)
|
16
16
|
minitest (5.14.4)
|
17
|
-
parallel (1.
|
18
|
-
parser (3.0.
|
17
|
+
parallel (1.21.0)
|
18
|
+
parser (3.0.3.1)
|
19
19
|
ast (~> 2.4.1)
|
20
20
|
pry (0.14.1)
|
21
21
|
coderay (~> 1.1)
|
@@ -24,18 +24,18 @@ 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.23.0)
|
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.13.0)
|
37
37
|
parser (>= 3.0.1.1)
|
38
|
-
rubocop-performance (1.
|
38
|
+
rubocop-performance (1.12.0)
|
39
39
|
rubocop (>= 1.7.0, < 2.0)
|
40
40
|
rubocop-ast (>= 0.4.0)
|
41
41
|
ruby-progressbar (1.11.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
|