rubocop-lts 22.1.1 โ†’ 22.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cde3aa5a4086d16f06de092d76239427f77c7697b0e3642144339bce95cfe1f3
4
- data.tar.gz: be383534a4e118e170e8b5d30e29d9ca3f454538c2a03a24a43b7c72434fbdc1
3
+ metadata.gz: a3878801d643feb409e1c7c7936f11357810cafa279d66a88e5ff505ea350431
4
+ data.tar.gz: b11f7a4039587f47f5ab159d2a8e202484521c7f2e6da4de84085b3b7856f1d4
5
5
  SHA512:
6
- metadata.gz: 3eda95af2c433e76d8814d9ee6d4f73b39e921741d14d7bf576987ce552060c2329d864207be98a0be91320c1981df406ebd0d9fc65725e1fbb6d82f0d5aaed1
7
- data.tar.gz: 46eb926cd895f5dde47ce9362eec36a4817587ca2ef209779f10e6fae0b6f3d2e14d977509b10d843cdea00ce75cf3b9e3078a62b4065168044d8f7e51985939
6
+ metadata.gz: 87b35edbd2239a15e2d9bfedcb5985915a051dae13167637492245f02717be49146e739633134e2f5b90bb555ba0b98b666a0e96d3200008e0c02b83ddd915a2
7
+ data.tar.gz: 8c7151c438daec1d060b8cad76bcc8c0e116ee7ebac95a5ae7739bb951a3db6552dcb87ad8ad583ed962bd082af591557d333e5d258dc5cf3168b720e9ac0414
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,6 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [22.1.3] - 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
+
18
+ ## [22.1.2] - 2023-05-22
19
+ ### Changed
20
+ - Oops, minimum Ruby version is 3.1, for real this time.
21
+
13
22
  ## [22.1.1] - 2023-05-22
14
23
  ### Changed
15
24
  - Minimum Ruby version is 3.1
@@ -30,7 +39,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
39
  ### Added
31
40
  - Initial even release supporting Ruby >= 3.1
32
41
 
33
- [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.1.1...HEAD
42
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.1.3...HEAD
43
+ [22.1.3]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.1.2...v22.1.3
44
+ [22.1.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.1.1...v22.1.2
34
45
  [22.1.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.1.0...v22.1.1
35
46
  [22.1.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.0.1...v22.1.0
36
47
  [22.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v22.0.0...v22.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
- * ๐ŸŒฑ [Even Releases][Even-Major-Release] (use these!)
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
- * ๐Ÿงฎ [Development][Development]
31
- * โšก๏ธ [Contributing][Contributing]
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
- [Why-Build-This]: https://github.com/rubocop-lts/.github/blob/main/profile/WHY_BUILD_THIS.md
39
- [Convention-Over-Configuration]: https://github.com/rubocop-lts/.github/blob/main/profile/CONV_OVER_CONF.md
40
- [Even-Major-Release]: https://github.com/rubocop-lts/.github/blob/main/profile/CONV_OVER_CONF.md#even-major-release
41
- [Odd-Major-Release]: https://github.com/rubocop-lts/.github/blob/main/profile/CONV_OVER_CONF.md#odd-major-release
42
- [How-To-Upgrade-Ruby]: https://github.com/rubocop-lts/.github/blob/main/profile/HOW_TO_UPGRADE_RUBY.md
43
- [OrgHealth]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#org-health-
44
- [Usage]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#usage-
45
- [Development]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#development-
46
- [Contributing]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#contributing-
47
- [Contributors]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#contributors-
48
- [License]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#license-
49
- [Copyright]: https://github.com/rubocop-lts/.github/blob/main/profile/README.md#copyright-
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
- [conduct]: https://github.com/rubocop-lts/rubocop-lts/blob/main/CODE_OF_CONDUCT.md
399
-
400
- [contributing]: https://github.com/rubocop-lts/rubocop-lts/blob/main/CONTRIBUTING.md
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
- [semver]: http://semver.org/
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
- [chat]: https://gitter.im/rubocop-lts/rubocop-lts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
443
-
444
- [maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
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
@@ -0,0 +1,2 @@
1
+ AllCops:
2
+ DisplayCopNames: true # Display the name of the failing cops
data/config/rails.yml CHANGED
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/rails.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/rails_rspec.yml
data/config/rspec.yml CHANGED
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/rspec.yml
data/config/ruby.yml CHANGED
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/ruby.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/ruby_rspec.yml
data/config/rubygem.yml CHANGED
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/rubygem.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_1: rubocop-lts/rubygem_rspec.yml
@@ -3,7 +3,7 @@
3
3
  module Rubocop
4
4
  module Lts
5
5
  module Version
6
- VERSION = "22.1.1"
6
+ VERSION = "22.1.3"
7
7
  end
8
8
  end
9
9
  end
data/lib/rubocop/lts.rb CHANGED
@@ -2,13 +2,17 @@
2
2
 
3
3
  # external libs
4
4
  require "version_gem"
5
+ require "rubocop/ruby3_1"
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
- # Your code goes here...
12
+
13
+ module_function def install_tasks
14
+ Rubocop::Ruby31.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: 22.1.1
4
+ version: 22.1.3
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-22 00:00:00.000000000 Z
39
+ date: 2023-05-30 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-ruby3_1
@@ -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://gitlab.com/rubocop-lts/rubocop-lts
138
- source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v22.1.1
139
- changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v22.1.1/CHANGELOG.md
172
+ homepage_uri: https://rubocop-lts.gitlab.io/
173
+ source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v22.1.3
174
+ changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v22.1.3/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/22.1.1
176
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/22.1.3
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'
@@ -150,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
185
  requirements:
151
186
  - - ">="
152
187
  - !ruby/object:Gem::Version
153
- version: '3.0'
188
+ version: '3.1'
154
189
  required_rubygems_version: !ruby/object:Gem::Requirement
155
190
  requirements:
156
191
  - - ">="
metadata.gz.sig CHANGED
Binary file