rubocop-lts 24.0.1 โ†’ 24.0.2

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: ed55160841f716c144d20dc4afa7345a98ca0d21a460871355e655e063f307db
4
- data.tar.gz: ba5abeb28fe044990c0f2eca23c97b6e7bf7cd46726ec9444eff466fdb40a452
3
+ metadata.gz: c5a75d96b279d4c98f31cc6467b6cb2320795a6ea6d9547c4d9b7e710f0bd71d
4
+ data.tar.gz: e1b299cb386e523f8e8e3f5cbd1c46e2e5122e34a960bd344d1be794a7bdacd2
5
5
  SHA512:
6
- metadata.gz: bccebf40fc2756e12c622afd64ee31eb208912051e9f2e3fb713d81fed9b64f0d934c263cd7bf516a9f72b71270c7dd5bf0abad6715e9c035f9ff59ea249fe91
7
- data.tar.gz: 3dbc2034637f6c94e79a689f5df30f34620ade41dbca253f5011cb8df2df89e4c69c7b81a5a701661ae50f27150a8a8a2a60f73252cc797a66fd26d01a4debd6
6
+ metadata.gz: 240b5aff1c83c750d1f8e5af9855a1f78a5c8ef1fc4891ca948bf7b921112d7dc4db2f5a4638559ba34ef981ceaf2fcccd2343af8112916c7bc0bd3725f371c0
7
+ data.tar.gz: 39716e9984006d1213c17e373590f4a00b81de4749dafc5003b92fb172670c1e950e9b007bdc982021881561480b056f09764effb0189bce8c980e70b9e24447
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
+ ## [24.0.2] - 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
  ## [24.0.1] - 2023-05-22
14
19
  ### Changed
15
20
  - Minimum Ruby version is 3.2
@@ -18,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
23
  ### Added
19
24
  - Initial even release supporting Ruby >= 3.2
20
25
 
21
- [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v24.0.1...HEAD
26
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v24.0.2...HEAD
27
+ [24.0.2]: https://gitlab.com/rubocop-lts/rubocop-lts/compare/v24.0.1...v24.0.2
22
28
  [24.0.1]: https://gitlab.com/rubocop-lts/rubocop-lts/compare/v24.0.0...v24.0.1
23
29
  [24.0.0]: https://gitlab.com/rubocop-lts/rubocop-lts/-/tags/v24.0.0
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_2: rubocop-lts/rails.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_2: 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_2: 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_2: rubocop-lts/ruby.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_2: 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_2: rubocop-lts/rubygem.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby3_2: rubocop-lts/rubygem_rspec.yml
@@ -3,7 +3,7 @@
3
3
  module Rubocop
4
4
  module Lts
5
5
  module Version
6
- VERSION = "24.0.1"
6
+ VERSION = "24.0.2"
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_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
- # Your code goes here...
12
+
13
+ module_function def install_tasks
14
+ Rubocop::Ruby32.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: 24.0.1
4
+ version: 24.0.2
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_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://gitlab.com/rubocop-lts/rubocop-lts
138
- source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v24.0.1
139
- changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v24.0.1/CHANGELOG.md
172
+ homepage_uri: https://rubocop-lts.gitlab.io/
173
+ source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v24.0.2
174
+ changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v24.0.2/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/24.0.1
176
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/24.0.2
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