rubocop-lts 10.1.0 โ†’ 10.1.1

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: 73e31a5eab4c1c64ca59f597884a06a7857ea3d666052f1ae01a7b6c24865b1f
4
- data.tar.gz: 94403662d9ab4f4af83562ba2f0b08359ba491901ef14c4a86b49741962b2739
3
+ metadata.gz: ed6b2d998a9d67e0d9320ff2d84dd2144775dabc0bf211698699960cdf8f81c9
4
+ data.tar.gz: da8b4c0adb0e78112374554113442a72d12facf5a3e77b804c79b15e586f64c4
5
5
  SHA512:
6
- metadata.gz: '0048f9228d289d77b20ff1e951d89b36c0d540b5021ffe809cb29f0fea67c60e9565ef65de0997c0ca360b90cf3e6e699fd36903886d7232aea4933c7dd5a511'
7
- data.tar.gz: 0daa6b4ddceacdeeebf841c8816922bf2a7c9685c3ed6517b1fd9ecd0d02ff331ab02f9ea52853898d985bb7c40aa7b28c9525e1721ace4247d746a26b0d2b71
6
+ metadata.gz: 863cbdd447f5ebb708f75395b95b703cfb0d345c7fb0f18c9922b536bb79ed51a2537340c7df67b611b84ebaed2c19a5a35440165ee0479dcc5849d52011a90c
7
+ data.tar.gz: 95cc779d92673a73348271ee07ad836753d971fa84ed20283e87d66b03ad88df1f5528a1cc8febef55982b4824fa31c59bcae4d4a5fb791fc2d6194f5a00ed4e
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
+ ## [10.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
  ## [10.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.
@@ -24,7 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
29
  ### Added
25
30
  - Initial even release supporting Ruby >= 2.3
26
31
 
27
- [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v10.1.0...HEAD
32
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v10.1.1...HEAD
33
+ [10.1.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v10.1.0...v10.1.1
28
34
  [10.1.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v10.0.1...v10.1.0
29
35
  [10.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v10.0.0...v10.0.1
30
36
  [10.0.0]: https://gitlab.com/rubocop-lts/rubocop-lts/-/tags/v10.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-ruby2_3: rubocop-lts/rails.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby2_3: 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-ruby2_3: 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-ruby2_3: rubocop-lts/ruby.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby2_3: 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-ruby2_3: rubocop-lts/rubygem.yml
@@ -1,2 +1,4 @@
1
+ inherit_from: ./base.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-ruby2_3: rubocop-lts/rubygem_rspec.yml
@@ -3,7 +3,7 @@
3
3
  module Rubocop
4
4
  module Lts
5
5
  module Version
6
- VERSION = "10.1.0"
6
+ VERSION = "10.1.1"
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/ruby2_3"
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::Ruby23.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: 10.1.0
4
+ version: 10.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-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-ruby2_3
@@ -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/v10.1.0
139
- changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v10.1.0/CHANGELOG.md
172
+ homepage_uri: https://rubocop-lts.gitlab.io/
173
+ source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v10.1.1
174
+ changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v10.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/10.1.0
176
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/10.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