rubocop-lts 8.1.0 โ 8.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +7 -1
- data/CONTRIBUTING.md +1 -1
- data/README.md +136 -70
- data/config/base.yml +2 -0
- data/config/rails.yml +2 -0
- data/config/rails_rspec.yml +2 -0
- data/config/rspec.yml +2 -0
- data/config/ruby.yml +2 -0
- data/config/ruby_rspec.yml +2 -0
- data/config/rubygem.yml +2 -0
- data/config/rubygem_rspec.yml +2 -0
- data/lib/rubocop/lts/version.rb +1 -1
- data/lib/rubocop/lts.rb +5 -1
- data.tar.gz.sig +0 -0
- metadata +41 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51d286f0405f50005511cc859628b3d1a432e2f945d772d4ae484c1b161d8d89
|
4
|
+
data.tar.gz: 9b0502f1f2a510bcfe672fead15bcac92106714e88e2c148fa7e8eaa398e9ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa0cc2abd7b2d175a20623a7f83992aa2c4ee233a5961b194a10475bc457f240daa525c3f4ba66d13f9fa187f4d5b01ac316acb994146efcb1df8c7e242438f
|
7
|
+
data.tar.gz: 79d9c44d83a87edfffdbd3e5ea1f2ae95ad72739bc84cc355692502a4bf7425ac2f6fe85b67482134317d66d8192e56d2c91f741c8658f0dcea97d0ffca3e23c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
10
10
|
### Fixed
|
11
11
|
### Removed
|
12
12
|
|
13
|
+
## [8.1.1] - 2023-05-30
|
14
|
+
### Added
|
15
|
+
- `config/base.yml` for all shared configs
|
16
|
+
- `Rubocop::Lts.install_tasks` to roll-up rake tasks from dependencies (e.g. rubocop_gradual)
|
17
|
+
|
13
18
|
## [8.1.0] - 2023-05-22
|
14
19
|
### Removed
|
15
20
|
- Support for installs on Ruby < 2.7. Minimum runtime version is Ruby 2.7. Continues to analyze older Ruby.
|
@@ -26,7 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
26
31
|
### Added
|
27
32
|
- Initial even release supporting Ruby >= 2.2
|
28
33
|
|
29
|
-
[Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.1.
|
34
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.1.1...HEAD
|
35
|
+
[8.1.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.1.0...v8.1.1
|
30
36
|
[8.1.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.0.2...v8.1.0
|
31
37
|
[8.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.0.1...v8.0.2
|
32
38
|
[8.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.0.0...v8.0.1
|
data/CONTRIBUTING.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/rubocop-lts/rubocop-lts][๐src-main]
|
4
4
|
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
5
|
-
the [code of conduct][conduct].
|
5
|
+
the [code of conduct][๐คconduct].
|
6
6
|
|
7
7
|
To submit a patch, please fork the project and create a patch with tests. Once you're happy with it send a pull request
|
8
8
|
and post a message to the [gitter chat][๐chat].
|
data/README.md
CHANGED
@@ -16,39 +16,35 @@
|
|
16
16
|
</a>
|
17
17
|
</p>
|
18
18
|
|
19
|
-
# RuboCop LTS
|
19
|
+
# ๐ฆพ RuboCop LTS
|
20
20
|
|
21
21
|
## PROJECT DOCUMENTATION
|
22
22
|
|
23
|
-
* ๐ฑ [Why Build This?][Why-Build-This]
|
24
23
|
* ๐ฑ [Convention > Configuration][Convention-Over-Configuration]
|
25
|
-
* ๐ฑ [
|
26
|
-
* ๐ฑ [Odd Releases][Odd-Major-Release] (deprecated)
|
24
|
+
* ๐ฑ [Releases][Even-Major-Release]
|
27
25
|
* ๐ฑ [How to Upgrade Ruby (1.8 to 3.2)!][How-To-Upgrade-Ruby]
|
28
26
|
* ๐ฉโ๐ป [Org Health][OrgHealth]
|
27
|
+
* โจ [Installation][Installation]
|
29
28
|
* ๐ง [Usage][Usage]
|
30
|
-
*
|
31
|
-
|
32
|
-
* ๐ [Contributors][Contributors]
|
29
|
+
* โก๏ธ [Contributing][Contributing]
|
30
|
+
* ๐ [Contributors][Contributors]
|
33
31
|
* ๐ [License][License]
|
34
32
|
* ยฉ [Copyright][Copyright]
|
35
33
|
* ๐ค [Code of Conduct][Code of Conduct]
|
36
34
|
* ๐ [Versioning][Versioning]
|
37
35
|
|
38
|
-
[
|
39
|
-
[
|
40
|
-
[
|
41
|
-
[
|
42
|
-
[
|
43
|
-
[
|
44
|
-
[
|
45
|
-
[
|
46
|
-
[
|
47
|
-
[
|
48
|
-
[
|
49
|
-
[
|
50
|
-
[Code of Conduct]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#code-of-conduct-
|
51
|
-
[Versioning]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#versioning-
|
36
|
+
[Convention-Over-Configuration]: https://rubocop-lts.gitlab.io/CONV_OVER_CONF/
|
37
|
+
[Even-Major-Release]: https://rubocop-lts.gitlab.io/CONV_OVER_CONF/#even-major-release
|
38
|
+
[How-To-Upgrade-Ruby]: https://rubocop-lts.gitlab.io/HOW_TO_UPGRADE_RUBY/
|
39
|
+
[OrgHealth]: https://rubocop-lts.gitlab.io/#org-health-
|
40
|
+
[Installation]: https://rubocop-lts.gitlab.io/#installation-
|
41
|
+
[Usage]: https://rubocop-lts.gitlab.io/#usage-
|
42
|
+
[Contributing]: https://rubocop-lts.gitlab.io/#contributing-
|
43
|
+
[Contributors]: https://rubocop-lts.gitlab.io/#contributors-
|
44
|
+
[License]: https://rubocop-lts.gitlab.io/#license-
|
45
|
+
[Copyright]: https://rubocop-lts.gitlab.io/#copyright-
|
46
|
+
[Code of Conduct]: https://rubocop-lts.gitlab.io/#code-of-conduct-
|
47
|
+
[Versioning]: https://rubocop-lts.gitlab.io/#versioning-
|
52
48
|
|
53
49
|
## This README
|
54
50
|
|
@@ -130,6 +126,101 @@ And then execute:
|
|
130
126
|
|
131
127
|
$ bundle
|
132
128
|
|
129
|
+
## Usage with RuboCop
|
130
|
+
|
131
|
+
In your `.rubocop.yml` do the following:
|
132
|
+
|
133
|
+
๐ฅ Delete the following line ๐ฅ
|
134
|
+
```yaml
|
135
|
+
inherit_from: .rubocop_todo.yml
|
136
|
+
```
|
137
|
+
|
138
|
+
You can probably ๐ฅ delete ๐ฅ most of the other lines too.
|
139
|
+
This tool is anti-bike-shedding.
|
140
|
+
You no longer need to worry about the rules!
|
141
|
+
|
142
|
+
๐ฅ Any of the following configs are no longer needed ๐ฅ
|
143
|
+
```yaml
|
144
|
+
require:
|
145
|
+
- 'betterlint'
|
146
|
+
- 'rubocop-md'
|
147
|
+
- 'rubocop-packaging'
|
148
|
+
- 'rubocop-performance'
|
149
|
+
- 'rubocop-rake'
|
150
|
+
- 'rubocop-rspec'
|
151
|
+
- 'rubocop-rails'
|
152
|
+
- 'rubocop-thread_safety'
|
153
|
+
- 'rubocop/gradual/patch'
|
154
|
+
- 'standard'
|
155
|
+
- 'standard-custom'
|
156
|
+
- 'standard-performance'
|
157
|
+
- 'standard-rails'
|
158
|
+
- 'standard-rubocop-lts'
|
159
|
+
|
160
|
+
AllCops:
|
161
|
+
NewCops: enable
|
162
|
+
DisplayCopNames: true
|
163
|
+
TargetRubyVersion: X.X
|
164
|
+
```
|
165
|
+
|
166
|
+
Then pick one of the following to add!
|
167
|
+
|
168
|
+
### if Ruby with RSpec
|
169
|
+
|
170
|
+
```yaml
|
171
|
+
inherit_gem:
|
172
|
+
rubocop-lts: rubocop-lts.yml # for the ruby + rspec
|
173
|
+
# NOTE: this is the default, and as such, is equivalent to:
|
174
|
+
# rubocop-lts: config/ruby_rspec.yml
|
175
|
+
```
|
176
|
+
|
177
|
+
### if just Ruby (without RSpec)
|
178
|
+
|
179
|
+
```yaml
|
180
|
+
inherit_gem:
|
181
|
+
rubocop-lts: config/ruby.yml
|
182
|
+
```
|
183
|
+
|
184
|
+
### if Rails with RSpec
|
185
|
+
|
186
|
+
```yaml
|
187
|
+
inherit_gem:
|
188
|
+
rubocop-lts: config/rails_rspec.yml
|
189
|
+
```
|
190
|
+
|
191
|
+
### if just Rails (without RSpec)
|
192
|
+
|
193
|
+
```yaml
|
194
|
+
inherit_gem:
|
195
|
+
rubocop-lts: config/rails.yml
|
196
|
+
```
|
197
|
+
|
198
|
+
### if rubygem with RSpec
|
199
|
+
|
200
|
+
```yaml
|
201
|
+
inherit_gem:
|
202
|
+
rubocop-lts: config/rubygem_rspec.yml
|
203
|
+
```
|
204
|
+
|
205
|
+
### if just rubygem (without RSpec)
|
206
|
+
|
207
|
+
```yaml
|
208
|
+
inherit_gem:
|
209
|
+
rubocop-lts: config/rubygem.yml
|
210
|
+
```
|
211
|
+
|
212
|
+
### Load Rake Tasks
|
213
|
+
|
214
|
+
NOTE: On Rails it is **automatic**, via Railtie, so you can skip this.
|
215
|
+
|
216
|
+
In a non-Rails environment add the following to your `Rakefile`:
|
217
|
+
```ruby
|
218
|
+
require "rubocop/lts"
|
219
|
+
Rubocop::Lts.install_tasks
|
220
|
+
```
|
221
|
+
|
222
|
+
This will load the `rubocop_gradual` rake task, and alias it as `rubocop`.
|
223
|
+
|
133
224
|
### Dependabot Noise Reduction
|
134
225
|
|
135
226
|
Add the following to `.github/dependabot.yml` if you use Github Actions.
|
@@ -391,58 +482,33 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
|
|
391
482
|
[โณ๏ธ32-g]: https://rubygems.org/gems/rubocop-ruby3_2
|
392
483
|
[โณ๏ธ32-gh]: https://github.com/rubocop-lts/rubocop-ruby3_2
|
393
484
|
|
485
|
+
[aboutme]: https://about.me/peter.boling
|
486
|
+
[actions]: https://github.com/rubocop-lts/rubocop-lts/actions
|
487
|
+
[angelme]: https://angel.co/peter-boling
|
488
|
+
[blogpage]: http://www.railsbling.com/tags/rubocop-lts/
|
489
|
+
[codecov_coverage]: https://codecov.io/gh/rubocop-lts/rubocop-lts
|
490
|
+
[code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-lts
|
491
|
+
[chat]: https://gitter.im/rubocop-lts/rubocop-lts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
492
|
+
[climate_coverage]: https://codeclimate.com/github/rubocop-lts/rubocop-lts/test_coverage
|
493
|
+
[climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-lts/maintainability
|
394
494
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
395
|
-
|
495
|
+
[conduct]: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/main/CODE_OF_CONDUCT.md
|
496
|
+
[contributing]: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/main/CONTRIBUTING.md
|
497
|
+
[devto]: https://dev.to/galtzo
|
498
|
+
[documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-lts/main
|
499
|
+
[followme]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
|
396
500
|
[gh_discussions]: https://github.com/rubocop-lts/rubocop-lts/discussions
|
397
|
-
|
398
|
-
[
|
399
|
-
|
400
|
-
[
|
401
|
-
|
402
|
-
[security]: https://github.com/rubocop-lts/rubocop-lts/blob/main/SECURITY.md
|
403
|
-
|
404
|
-
[license]: https://github.com/rubocop-lts/rubocop-lts/blob/main/LICENSE.txt
|
405
|
-
|
501
|
+
[gh_sponsors]: https://github.com/sponsors/pboling
|
502
|
+
[issues]: https://github.com/rubocop-lts/rubocop-lts/issues
|
503
|
+
[liberapay_donate]: https://liberapay.com/pboling/donate
|
504
|
+
[license]: LICENSE.txt
|
406
505
|
[license-ref]: https://opensource.org/licenses/MIT
|
407
|
-
|
408
|
-
[
|
409
|
-
|
506
|
+
[license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
507
|
+
[peterboling]: http://www.peterboling.com
|
410
508
|
[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
411
|
-
|
412
509
|
[railsbling]: http://www.railsbling.com
|
413
|
-
|
414
|
-
[peterboling]: http://www.peterboling.com
|
415
|
-
|
416
|
-
[aboutme]: https://about.me/peter.boling
|
417
|
-
|
418
|
-
[angelme]: https://angel.co/peter-boling
|
419
|
-
|
420
|
-
[coderme]:http://coderwall.com/pboling
|
421
|
-
|
422
|
-
[followme-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
|
423
|
-
|
424
|
-
[tweetme]: http://twitter.com/galtzo
|
425
|
-
|
426
|
-
[documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-lts/main
|
427
|
-
|
428
|
-
[source]: https://github.com/rubocop-lts/rubocop-lts/
|
429
|
-
|
430
|
-
[actions]: https://github.com/rubocop-lts/rubocop-lts/actions
|
431
|
-
|
432
|
-
[issues]: https://github.com/rubocop-lts/rubocop-lts/issues
|
433
|
-
|
434
|
-
[climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-lts/maintainability
|
435
|
-
|
436
|
-
[code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-lts
|
437
|
-
|
438
|
-
[blogpage]: http://www.railsbling.com/tags/rubocop-lts/
|
439
|
-
|
440
510
|
[rubygems]: https://rubygems.org/gems/rubocop-lts
|
441
|
-
|
442
|
-
[
|
443
|
-
|
444
|
-
[
|
445
|
-
|
446
|
-
[liberapay_donate]: https://liberapay.com/pboling/donate
|
447
|
-
|
448
|
-
[gh_sponsors]: https://github.com/sponsors/pboling
|
511
|
+
[security]: https://github.com/rubocop-lts/rubocop-lts/blob/main/SECURITY.md
|
512
|
+
[semver]: http://semver.org/
|
513
|
+
[source]: https://github.com/rubocop-lts/rubocop-lts/
|
514
|
+
[tweetme]: http://twitter.com/galtzo
|
data/config/base.yml
ADDED
data/config/rails.yml
CHANGED
data/config/rails_rspec.yml
CHANGED
data/config/rspec.yml
CHANGED
data/config/ruby.yml
CHANGED
data/config/ruby_rspec.yml
CHANGED
data/config/rubygem.yml
CHANGED
data/config/rubygem_rspec.yml
CHANGED
data/lib/rubocop/lts/version.rb
CHANGED
data/lib/rubocop/lts.rb
CHANGED
@@ -2,13 +2,17 @@
|
|
2
2
|
|
3
3
|
# external libs
|
4
4
|
require "version_gem"
|
5
|
+
require "rubocop/ruby2_2"
|
5
6
|
|
6
7
|
require_relative "lts/version"
|
7
8
|
|
8
9
|
module Rubocop
|
9
10
|
module Lts
|
10
11
|
class Error < StandardError; end
|
11
|
-
|
12
|
+
|
13
|
+
module_function def install_tasks
|
14
|
+
Rubocop::Ruby22.install_tasks
|
15
|
+
end
|
12
16
|
end
|
13
17
|
end
|
14
18
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-lts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
|
37
37
|
4/bR9A==
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2023-05-
|
39
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-ruby2_2
|
@@ -58,6 +58,26 @@ dependencies:
|
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: standard-rubocop-lts
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.0.3
|
68
|
+
- - "<"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '3'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.3
|
78
|
+
- - "<"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '3'
|
61
81
|
- !ruby/object:Gem::Dependency
|
62
82
|
name: version_gem
|
63
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,6 +126,20 @@ dependencies:
|
|
106
126
|
- - "~>"
|
107
127
|
- !ruby/object:Gem::Version
|
108
128
|
version: '2.22'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: rspec-block_is_expected
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '1.0'
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - "~>"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '1.0'
|
109
143
|
description: Configure RuboCop + a bevy of friends to gradually lint Ruby code
|
110
144
|
email:
|
111
145
|
- peter.boling@gmail.com
|
@@ -119,6 +153,7 @@ files:
|
|
119
153
|
- LICENSE.txt
|
120
154
|
- README.md
|
121
155
|
- SECURITY.md
|
156
|
+
- config/base.yml
|
122
157
|
- config/rails.yml
|
123
158
|
- config/rails_rspec.yml
|
124
159
|
- config/rspec.yml
|
@@ -134,11 +169,11 @@ homepage: https://gitlab.com/rubocop-lts/rubocop-lts
|
|
134
169
|
licenses:
|
135
170
|
- MIT
|
136
171
|
metadata:
|
137
|
-
homepage_uri: https://
|
138
|
-
source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v8.1.
|
139
|
-
changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v8.1.
|
172
|
+
homepage_uri: https://rubocop-lts.gitlab.io/
|
173
|
+
source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v8.1.1
|
174
|
+
changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v8.1.1/CHANGELOG.md
|
140
175
|
bug_tracker_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/issues
|
141
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/8.1.
|
176
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/8.1.1
|
142
177
|
wiki_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/wiki
|
143
178
|
funding_uri: https://liberapay.com/pboling
|
144
179
|
rubygems_mfa_required: 'true'
|
metadata.gz.sig
CHANGED
Binary file
|