rubocop-lts 20.2.1 → 21.0.0

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: fad0747b77c9af3fced956e792f05764ce7aacfd52c90c614dfd389c32e5c1be
4
- data.tar.gz: 6b67f812912220d07b27fb3fd7ef484e93bc7e1e89fd84ffeddee6b18e214863
3
+ metadata.gz: 405354608e234b99aa9da3eacb4ccbd49443a6486098ab4c1ab19a4eb866332a
4
+ data.tar.gz: 6e107182e2c7bd741c4b67d863666cf7955aed91cd66d8dbb7c8ba4bef4fb48e
5
5
  SHA512:
6
- metadata.gz: 5a4e93dd2db73d1cab3ada571357d63b6f8e636ee431090df8a2ed72ad76a6eb2096a131b5cd064f529eaba70e3dfd8d37601bcfc967f9810309003141173547
7
- data.tar.gz: d3e9e26ebf08d40489fca024811e8bbc3d4a62813a73f4ad2eeec09b9dbe7a4658bd1ea4d41a850ba39bf7e206dc83e2254297149780f0b47f287ea0ecac61ce
6
+ metadata.gz: ec38fcd39b9124f096266be0c5b3b1a587077a4172d7f992545255fc0627871d1e3f98a83657c52b922a996c5f824387e555b799292a4b186c1c9fcc889547ee
7
+ data.tar.gz: bfe3ef7d5a8ce9aa74abdce7d5c8e48e840aa189d68f78d1bbd6fb23f88ebf92d7a171bd668a07909abf646dc8da49e874e3e1961956fed372a7e0b751168e1b
data/CHANGELOG.md CHANGED
@@ -6,44 +6,177 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
  ### Added
9
+
9
10
  ### Changed
11
+
10
12
  ### Fixed
13
+
11
14
  ### Removed
12
15
 
13
- ## [20.2.1] - 2023-05-22
14
- ### Changed
15
- - Minimum Ruby version is 3.0
16
+ ## [21.0.0] - 2022-05-23
17
+ ### Added
18
+ - Initial odd release supporting Ruby ~> 3.1
16
19
 
17
- ## [20.2.0] - 2023-05-22 [YANKED]
18
- ### Changed
19
- - Bumped dependency rubocop-ruby3_0 to ~> 2.0.4
20
+ ## [20.0.0] - 2022-05-23
21
+ ### Added
22
+ - Initial even release supporting Ruby >= 3.0
20
23
 
21
- ## [20.1.0] - 2023-03-17
24
+ ## [19.0.0] - 2022-05-23
22
25
  ### Added
23
- - Certificate for signing gem releases
24
- - Gemspec metadata
25
- - funding_uri
26
- - SHA256 and SHA512 Checksums for release
27
- ### Changed
28
- - Bumped dependency rubocop-ruby3_0 to ~> 1.1.2
29
- - Allows rubocop ~> 1.48.1
30
- - Compatible with rubocop-packaging ~> 0.5.2
31
- - Gem releases are now cryptographically signed
26
+ - Initial odd release supporting Ruby ~> 3.0
32
27
 
33
- ## [20.0.1] - 2022-06-09
28
+ ## [18.0.0] - 2022-05-23
34
29
  ### Added
35
- - Improve, and dry up documentation
36
- ### Changed
37
- - Bumped dependency rubocop-ruby2_7 to ~> 1.0.6
30
+ - Initial even release supporting Ruby >= 2.7
31
+
32
+ ## [17.0.0] - 2022-05-23
33
+ ### Added
34
+ - Initial odd release supporting Ruby ~> 2.7
35
+
36
+ ## [16.0.0] - 2022-05-23
37
+ ### Added
38
+ - Initial even release supporting Ruby >= 2.6
39
+
40
+ ## [15.0.0] - 2022-05-23
41
+ ### Added
42
+ - Initial odd release supporting Ruby ~> 2.6
43
+
44
+ ## [14.0.0] - 2022-05-23
45
+ ### Added
46
+ - Initial even release supporting Ruby >= 2.5
47
+
48
+ ## [13.0.0] - 2022-05-23
49
+ ### Added
50
+ - Initial odd release supporting Ruby ~> 2.5
51
+
52
+ ## [12.0.0] - 2022-05-23
53
+ ### Added
54
+ - Initial even release supporting Ruby >= 2.4
55
+
56
+ ## [11.0.0] - 2022-05-23
57
+ ### Added
58
+ - Initial odd release supporting Ruby ~> 2.4
59
+
60
+ ## [10.0.0] - 2022-05-23
61
+ ### Added
62
+ - Initial even release supporting Ruby >= 2.3
63
+
64
+ ## [9.0.0] - 2022-05-23
65
+ ### Added
66
+ - Initial odd release supporting Ruby ~> 2.3
67
+
68
+ ## [8.0.0] - 2022-05-23
69
+ ### Added
70
+ - Initial even release supporting Ruby >= 2.2
71
+
72
+ ## [7.0.0] - 2022-05-23
73
+ ### Added
74
+ - Initial odd release supporting Ruby ~> 2.2
75
+
76
+ ## [6.0.0] - 2022-05-23
77
+ ### Added
78
+ - Initial even release supporting Ruby >= 2.1
79
+
80
+ ## [5.0.1] - 2022-05-23
38
81
  ### Fixed
39
- - Allow install up to Ruby < 4, which allows running against current Ruby HEAD @ 3.2-dev
82
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
40
83
 
41
- ## [20.0.0] - 2022-05-23
84
+ ## [5.0.0] - 2022-05-23
42
85
  ### Added
43
- - Initial even release supporting Ruby >= 3.0
86
+ - Initial odd release supporting Ruby ~> 2.1
87
+
88
+ ## [4.0.2] - 2022-05-23
89
+ ### Fixed
90
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
91
+
92
+ ## [4.0.1] - 2022-05-23
93
+ ### Fixed
94
+ - Ship rubocop config files in gem
95
+ - rubocop-lts.yml
96
+
97
+ ## [4.0.0] - 2022-05-22
98
+ ### Added
99
+ - Initial even release supporting Ruby >= 2.0
100
+
101
+ ## [3.0.2] - 2022-05-23
102
+ ### Fixed
103
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
104
+
105
+ ## [3.0.1] - 2022-05-23
106
+ ### Fixed
107
+ - Ship rubocop config files in gem
108
+ - rubocop-lts.yml
109
+
110
+ ## [3.0.0] - 2022-05-22
111
+ ### Added
112
+ - Initial odd release supporting Ruby ~> 2.0
113
+
114
+ ## [2.0.3] - 2022-05-23
115
+ ### Fixed
116
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
117
+
118
+ ## [2.0.2] - 2022-05-23
119
+ ### Fixed
120
+ - Ship rubocop config files in gem
121
+ - rubocop-lts.yml
122
+ - rubocop-lts1_8.yml
123
+
124
+ ## [2.0.1] - 2022-05-22
125
+ ### Fixed
126
+ - Documentation typos & gemspec URLs
127
+
128
+ ## [2.0.0] - 2022-05-22
129
+ ### Added
130
+ - Initial even release supporting Ruby >= 1.9
131
+
132
+ ## [1.0.3] - 2022-05-23
133
+ ### Fixed
134
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
135
+
136
+ ## [1.0.2] - 2022-05-23
137
+ ### Fixed
138
+ - Ship rubocop config files in gem
139
+ - rubocop-lts.yml
140
+ - rubocop-lts1_8.yml
141
+
142
+ ## [1.0.1] - 2022-05-22
143
+ ### Fixed
144
+ - Documentation typos & gemspec URLs
145
+
146
+ ## [1.0.0] - 2022-05-22
147
+ ### Added
148
+ - Initial odd release supporting Ruby ~> 1.9
44
149
 
45
- [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v20.2.0...HEAD
46
- [20.2.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v20.1.0...v20.2.0
47
- [20.1.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v20.0.1...v20.1.0
48
- [20.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v20.0.0...v20.0.1
49
- [20.0.0]: https://gitlab.com/rubocop-lts/rubocop-lts/-/tags/v20.0.0
150
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v21.0.0...HEAD
151
+ [21.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v20.0.0...v21.0.0
152
+ [20.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v19.0.0...v20.0.0
153
+ [19.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v18.0.0...v19.0.0
154
+ [18.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v17.0.0...v18.0.0
155
+ [17.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v16.0.0...v17.0.0
156
+ [16.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v15.0.0...v16.0.0
157
+ [15.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v14.0.0...v15.0.0
158
+ [14.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v13.0.0...v14.0.0
159
+ [13.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v12.0.0...v13.0.0
160
+ [12.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v11.0.0...v12.0.0
161
+ [11.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v10.0.0...v11.0.0
162
+ [10.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v9.0.0...v10.0.0
163
+ [9.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v8.0.0...v9.0.0
164
+ [8.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v7.0.0...v8.0.0
165
+ [7.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v6.0.0...v7.0.0
166
+ [6.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v5.0.1...v6.0.0
167
+ [5.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v5.0.0...v5.0.1
168
+ [5.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v4.0.2...v5.0.0
169
+ [4.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v4.0.1...v4.0.2
170
+ [4.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v4.0.0...v4.0.1
171
+ [4.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v3.0.2...v4.0.0
172
+ [3.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v3.0.1...v3.0.2
173
+ [3.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v3.0.0...v3.0.1
174
+ [3.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.3...v3.0.0
175
+ [2.0.3]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.2...v2.0.3
176
+ [2.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.1...v2.0.2
177
+ [2.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.0...v2.0.1
178
+ [2.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.3...v2.0.0
179
+ [1.0.3]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.2...v1.0.3
180
+ [1.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.1...v1.0.2
181
+ [1.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.0...v1.0.1
182
+ [1.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/f0fcf8e7dbb4d884a01c7191e7f26ef8bf3b22af...v1.0.0
data/CONTRIBUTING.md CHANGED
@@ -1,39 +1,25 @@
1
1
  ## Contributing
2
2
 
3
- Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/rubocop-lts/rubocop-lts][🚎src-main]
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/rubocop-lts/rubocop-lts][source]
4
4
  . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
5
  the [code of conduct][conduct].
6
6
 
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
- and post a message to the [gitter chat][🏘chat].
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!
9
8
 
10
- ## Release
9
+ ## Contributors
11
10
 
12
- To release a new version:
11
+ [![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-lts)][contributors]
13
12
 
14
- 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check.
15
- 2. update the version number in `version.rb`
16
- 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`.
17
- 4. run `bundle exec rake build:checksum`
18
- 5. move the built gem to project root
19
- 6. run `bin/checksum` to create the missing SHA256 checksum
20
- 7. move the built gem back to `pkg/`
21
- 8. commit the changes
22
- 9. run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org][rubygems].
13
+ Made with [contributors-img][contrib-rocks].
23
14
 
24
- NOTE: You will need to have a public key in `certs/`, and list your cert in the
25
- `gemspec`, in order to sign the new release.
26
- See: [RubyGems Security Guide][rubygems-security-guide]
15
+ [comment]: <> (Following links are used by README, CONTRIBUTING)
27
16
 
28
- ## Contributors
17
+ [conduct]: https://github.com/rubocop-lts/rubocop-lts/blob/main/CODE_OF_CONDUCT.md
18
+
19
+ [contrib-rocks]: https://contrib.rocks
29
20
 
30
- See: [https://gitlab.com/rubocop-lts/rubocop-lts/-/graphs/main][🖐contributors]
21
+ [contributors]: https://github.com/rubocop-lts/rubocop-lts/graphs/contributors
31
22
 
32
23
  [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
33
24
 
34
- [🤝conduct]: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/main/CODE_OF_CONDUCT.md
35
- [🖐contributors]: https://gitlab.com/rubocop-lts/rubocop-lts/-/graphs/main
36
- [🚎src-main]: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/main
37
- [🏘chat]: https://gitter.im/rubocop-lts/community
38
- [rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
39
- [rubygems]: https://rubygems.org
25
+ [source]: https://github.com/rubocop-lts/rubocop-lts/
data/README.md CHANGED
@@ -16,129 +16,323 @@
16
16
  </a>
17
17
  </p>
18
18
 
19
- # RuboCop LTS
20
-
21
- ## PROJECT DOCUMENTATION
22
-
23
- * 🌱 [Why Build This?][Why-Build-This]
24
- * 🌱 [Convention > Configuration][Convention-Over-Configuration]
25
- * 🌱 [Even Releases][Even-Major-Release] (use these!)
26
- * 🌱 [Odd Releases][Odd-Major-Release] (deprecated)
27
- * 🌱 [How to Upgrade Ruby (1.8 to 3.2)!][How-To-Upgrade-Ruby]
28
- * 👩‍💻 [Org Health][OrgHealth]
29
- * 🔧 [Usage][Usage]
30
- * 🧮 [Development][Development]
31
- * ⚡️ [Contributing][Contributing]
32
- * 🌈 [Contributors][Contributors]
33
- * 📄 [License][License]
34
- * © [Copyright][Copyright]
35
- * 🤝 [Code of Conduct][Code of Conduct]
36
- * 📌 [Versioning][Versioning]
37
-
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-
52
-
53
- ## This README
54
-
55
- * 🌳 [This Branch](#this-branch-)
56
- * ‍💻 [Project Health](#project-health-)
57
- * ✨ [Installation](#installation-)
58
-
59
- ## This Branch 🌳
19
+ # Rubocop LTS
20
+
21
+ ## 🙋‍♀️ How often has RuboCop broken your build?
22
+
23
+ This is both good (literally its job) _and_ bad (when it's for the wrong reasons).
24
+
25
+ It's supposed to break the build when it finds violations.
26
+ It should not break the build due to incompatibility with your environment. RuboCop
27
+ doesn't [follow SemVer](https://dev.to/pboling/rubocop-ruby-matrix-gems-nj), and occasionally it will unexpectedly break things.
28
+
29
+ ## 🗿 Stable
30
+
31
+ All releases are stable releases. The major version you need depends on the supported version(s) of Ruby for your project.
32
+
33
+ Projects that support a single version of Ruby (like many closed-source applications) will use the [Odd releases][even-release].
34
+
35
+ Projects that support multiple versions of Ruby simultaneously (like many open-source applications and libraries) will use the [Even releases][even-release].
60
36
 
61
37
  <!-- FIND VERSION -->
62
- **This README is for the even release of `rubocop-lts` supporting Ruby >= 3.0.**
38
+ **This README is for the odd release of `rubocop-lts` supporting Ruby ~> 3.1.0.**
63
39
 
64
- This gem configures many gems for you:
40
+ [odd-release]: https://github.com/rubocop-lts/rubocop-lts#odd-major-release
41
+ [even-release]: https://github.com/rubocop-lts/rubocop-lts#even-major-release
65
42
 
66
- - rubocop
67
- - rubocop-gradual
68
- - rubocop-md
69
- - rubocop-rake
70
- - rubocop-shopify
71
- - rubocop-thread_safety
72
- - standard
73
- - standard-performance (incl. rubocop-performance)
74
- - standard-custom
75
- - standard-rubocop-lts (ruby version-specific rules)
43
+ ## Version Conventions
76
44
 
77
- And optionally, if you are using RSpec:
45
+ ### Odd Major Release
78
46
 
79
- - rubocop-rspec
47
+ Versions like:
48
+ ```ruby
49
+ "1.0.0"
50
+ "3.0.0"
51
+ "5.0.0"
52
+ # ... etc
53
+ ```
54
+ Locked to a single minor version of Ruby, e.g. version 15.0 has a `required_ruby_version` of `['>= 2.6.0', '< 2.7']`, which will install only on `2.6.x` versions of Ruby.
80
55
 
81
- And optionally, if you are building a RubyGem:
56
+ #### Implementation
82
57
 
83
- - rubocop-packaging
58
+ Intended for applications and libraries that only lint against a single Ruby version.
84
59
 
85
- And optionally, if you are building a Rails app:
60
+ Odd versions should be attached to a project's trunk (e.g. the main branch), for long-term stability (ahem, _lts_, anyone?) of the style rules.
86
61
 
87
- - standard-rails (incl. rubocop-rails)
88
- - betterlint
62
+ | Your Ruby | Your Gemfile | Your Gemfile.lock | Your .rubocop.yml |
63
+ |-----------------------------------|--------------------------------|-------------------|------------------------------------------------|
64
+ | `1.9.x` (`['>= 1.9.0', '< 2']`) | `gem "rubocop-lts", "~> 1.0"` | `rubocop-ruby1_9` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
65
+ | `2.0.x` (`['>= 2.0.0', '< 2.1']`) | `gem "rubocop-lts", "~> 3.0"` | `rubocop-ruby2_0` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
66
+ | `2.1.x` (`['>= 2.1.0', '< 2.2']`) | `gem "rubocop-lts", "~> 5.0"` | `rubocop-ruby2_1` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
67
+ | `2.2.x` (`['>= 2.2.0', '< 2.3']`) | `gem "rubocop-lts", "~> 7.0"` | `rubocop-ruby2_2` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
68
+ | `2.3.x` (`['>= 2.3.0', '< 2.4']`) | `gem "rubocop-lts", "~> 9.0"` | `rubocop-ruby2_3` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
69
+ | `2.4.x` (`['>= 2.4.0', '< 2.5']`) | `gem "rubocop-lts", "~> 11.0"` | `rubocop-ruby2_4` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
70
+ | `2.5.x` (`['>= 2.5.0', '< 2.6']`) | `gem "rubocop-lts", "~> 13.0"` | `rubocop-ruby2_5` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
71
+ | `2.6.x` (`['>= 2.6.0', '< 2.7']`) | `gem "rubocop-lts", "~> 15.0"` | `rubocop-ruby2_6` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
72
+ | `2.7.x` (`['>= 2.7.0', '< 3.0']`) | `gem "rubocop-lts", "~> 17.0"` | `rubocop-ruby2_7` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
73
+ | `3.0.x` (`['>= 3.0.0', '< 3.1']`) | `gem "rubocop-lts", "~> 19.0"` | `rubocop-ruby3_0` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
74
+ | `3.1.x` (`['>= 3.1.0', '< 3.2']`) | `gem "rubocop-lts", "~> 21.0"` | `rubocop-ruby3_1` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
75
+ | `3.2.x` / ruby-head | `gem "rubocop-lts", "~> 23.0"` | `rubocop-ruby3_2` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
89
76
 
90
- ## Project Health 👩‍💻
77
+ ### Even Major Release
78
+
79
+ Versions like:
80
+ ```ruby
81
+ "2.0.0"
82
+ "4.0.0"
83
+ "6.0.0"
84
+ # ... etc
85
+ ```
86
+ Locked to the forward range of Rubies on which the gem can be installed (though rubocop may not execute on all),
87
+ e.g. version 16.0 has a `required_ruby_version` of `['>= 2.6.0', '< 3.2']` will install on any released version
88
+ of ruby from `2.6` on.
89
+
90
+ #### Implementation
91
+
92
+ Intended for applications and libraries that lint against a range of Ruby versions.
93
+
94
+ Even versions will help projects upgrade to newer Rubies while keeping the same underlying version of Rubocop version, so change can be introduced one step at a time.
95
+
96
+ | Minimum Ruby | Your Gemfile | Your Gemfile.lock | Your .rubocop.yml |
97
+ |-----------------------------------|--------------------------------|-------------------|------------------------------------------------|
98
+ | `1.9.x` (`['>= 1.9.0', '< 3.2']`) | `gem "rubocop-lts", "~> 2.0"` | `rubocop-ruby1_9` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
99
+ | `2.0.x` (`['>= 2.0.0', '< 3.2']`) | `gem "rubocop-lts", "~> 4.0"` | `rubocop-ruby2_0` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
100
+ | `2.1.x` (`['>= 2.1.0', '< 3.2']`) | `gem "rubocop-lts", "~> 6.0"` | `rubocop-ruby2_1` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
101
+ | `2.2.x` (`['>= 2.2.0', '< 3.2']`) | `gem "rubocop-lts", "~> 8.0"` | `rubocop-ruby2_2` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
102
+ | `2.3.x` (`['>= 2.3.0', '< 3.2']`) | `gem "rubocop-lts", "~> 10.0"` | `rubocop-ruby2_3` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
103
+ | `2.4.x` (`['>= 2.4.0', '< 3.2']`) | `gem "rubocop-lts", "~> 12.0"` | `rubocop-ruby2_4` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
104
+ | `2.5.x` (`['>= 2.5.0', '< 3.2']`) | `gem "rubocop-lts", "~> 14.0"` | `rubocop-ruby2_5` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
105
+ | `2.6.x` (`['>= 2.6.0', '< 3.2']`) | `gem "rubocop-lts", "~> 16.0"` | `rubocop-ruby2_6` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
106
+ | `2.7.x` (`['>= 2.7.0', '< 3.2']`) | `gem "rubocop-lts", "~> 18.0"` | `rubocop-ruby2_7` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
107
+ | `3.0.x` (`['>= 3.0.0', '< 3.2']`) | `gem "rubocop-lts", "~> 20.0"` | `rubocop-ruby3_0` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
108
+ | `3.1.x` (`['>= 3.1.0', '< 3.2']`) | `gem "rubocop-lts", "~> 22.0"` | `rubocop-ruby3_1` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
109
+ | `3.2.x` / ruby-head | `gem "rubocop-lts", "~> 24.0"` | `rubocop-ruby3_2` | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
110
+
111
+ ### All together now!
112
+
113
+ Upgrading a single step from odd to even will allow upgrading Ruby.
114
+
115
+ Upgrading a single step from even to odd will keep the same version of Ruby, and instead upgrade to the next RuboCop milestone.
116
+
117
+ Each major version will have a tracking branch named accordingly, [for development](https://github.com/rubocop-lts/rubocop-lts#git-branch-names).
118
+
119
+ ### 🪢 How To Untie Gorgon's Knot
120
+
121
+ > NOTE: The ruby specific versions, e.g. `rubocop-ruby2_7`, can be used if you won't be upgrading ruby. Keep scrolling down for links to each of them.
122
+
123
+ How to upgrade a project from yesterday, to today.
124
+
125
+ 1. Have good code coverage.
126
+ 2. Upgrade one step at a time.
127
+ 3. Re-run `bundle exec rubocop -a` in between each step.
128
+ 4. Re-run `bundle exec rubocop --auto-gen-config` in between each step.
129
+ 5. Commit and push to CI in between each step.
130
+
131
+ | Your Ruby | Your Gemfile | required_ruby_version | Your Gemfile.lock | Your .rubocop.yml |
132
+ |---------------|--------------------------------------|-------------------------|------------------------------|------------------------------------------------|
133
+ | `1.9.x` | `gem "rubocop-lts", "~> 1.0"` | `['>= 1.9.0', '< 2']` | [`rubocop-ruby1_9`][⛳️19-gh] | `inherit_gem:\n rubocop-lts: rubocop-lts.yml` |
134
+ | ⬆️ to `2.0.x` | ⬆️ to `gem "rubocop-lts", "~> 2.0"` | `['>= 1.9.0', '< 3.2']` | no change | no change |
135
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 3.0"` | `['>= 2.0.0', '< 2.1']` | [`rubocop-ruby2_0`][⛳️20-gh] | no change |
136
+ | ⬆️ to `2.1.x` | ⬆️ to `gem "rubocop-lts", "~> 4.0"` | `['>= 2.0.0', '< 3.2']` | no change | no change |
137
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 5.0"` | `['>= 2.1.0', '< 2.2']` | [`rubocop-ruby2_1`][⛳️21-gh] | no change |
138
+ | ⬆️ to `2.2.x` | ⬆️ to `gem "rubocop-lts", "~> 6.0"` | `['>= 2.1.0', '< 3.2']` | no change | no change |
139
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 7.0"` | `['>= 2.2.0', '< 2.3']` | [`rubocop-ruby2_2`][⛳️22-gh] | no change |
140
+ | ⬆️ to `2.3.x` | ⬆️ to `gem "rubocop-lts", "~> 8.0"` | `['>= 2.2.0', '< 3.2']` | no change | no change |
141
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 9.0"` | `['>= 2.3.0', '< 2.4']` | [`rubocop-ruby2_3`][⛳️23-gh] | no change |
142
+ | ⬆️ to `2.4.x` | ⬆️ to `gem "rubocop-lts", "~> 10.0"` | `['>= 2.3.0', '< 3.2']` | no change | no change |
143
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 11.0"` | `['>= 2.4.0', '< 2.5']` | [`rubocop-ruby2_4`][⛳️24-gh] | no change |
144
+ | ⬆️ to `2.5.x` | ⬆️ to `gem "rubocop-lts", "~> 12.0"` | `['>= 2.4.0', '< 3.2']` | no change | no change |
145
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 13.0"` | `['>= 2.5.0', '< 2.6']` | [`rubocop-ruby2_5`][⛳️25-gh] | no change |
146
+ | ⬆️ to `2.6.x` | ⬆️ to `gem "rubocop-lts", "~> 14.0"` | `['>= 2.5.0', '< 3.2']` | no change | no change |
147
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 15.0"` | `['>= 2.6.0', '< 2.7']` | [`rubocop-ruby2_6`][⛳️26-gh] | no change |
148
+ | ⬆️ to `2.7.x` | ⬆️ to `gem "rubocop-lts", "~> 16.0"` | `['>= 2.6.0', '< 3.2']` | no change | no change |
149
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 17.0"` | `['>= 2.7.0', '< 3.0']` | [`rubocop-ruby2_7`][⛳️27-gh] | no change |
150
+ | ⬆️ to `3.0.x` | ⬆️ to `gem "rubocop-lts", "~> 18.0"` | `['>= 2.7.0', '< 3.2']` | no change | no change |
151
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 19.0"` | `['>= 3.0.0', '< 3.1']` | [`rubocop-ruby3_0`][⛳️30-gh] | no change |
152
+ | ⬆️ to `3.1.x` | ⬆️ to `gem "rubocop-lts", "~> 20.0"` | `['>= 3.0.0', '< 3.2']` | no change | no change |
153
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 21.0"` | `['>= 3.1.0', '< 3.2']` | [`rubocop-ruby3_1`][⛳️31-gh] | no change |
154
+ | ⬆️ to `3.2.x` | ⬆️ to `gem "rubocop-lts", "~> 22.0"` | `['>= 3.1.0', '< 3.2']` | no change | no change |
155
+ | no change | ⬆️ to `gem "rubocop-lts", "~> 23.0"` | `['>= 3.2.0', '< 3.3']` | [`rubocop-ruby3_2`][⛳️32-gh] | no change |
156
+ | ⬆️ to `3.3.x` | ⬆️ to `gem "rubocop-lts", "~> 24.0"` | `['>= 3.2.0', '< 3.3']` | no change | no change |
157
+
158
+ > NOTE: `required_ruby_version` means the gem will install on a version of Ruby within the range.
159
+ > Versions of this gem intended for ancient Rubies may not execute on more modern Rubies, _despite installing_.
160
+ > As such you might consider limiting linting to only a single version of Ruby, the oldest one supported.
161
+ > Speaking of old rubies... 👇
162
+
163
+ ### 📼 Supporting Ruby 1.8
164
+
165
+ Have a library still supporting Ruby 1.8.7, or looking to drop support for Ruby 1.8.7 in a SemVer-compliant manner?
166
+
167
+ Simply use `rubocop-lts`, version 1.x or 2.x, which support Ruby 1.9.3 for installation, and 1.8.7 for syntax.
168
+ ```yaml
169
+ inherit_gem:
170
+ rubocop-lts: rubocop-lts1_8.yml
171
+ ```
91
172
 
92
- | Gem Name | Version | Downloads | CI | Activity |
93
- |------------------------------|-------------------------------------|----------------------------------------------------------------------|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
94
- | [`rubocop-lts`][⛳️lts-gh] | [![Gem Version][⛳️lts-vi]][⛳️lts-g] | [![Total DL][🖇️lts-dti]][⛳️lts-g] [![DL Rank][🏘️lts-rti]][⛳️lts-g] | [![Current][🚎lts-cwfi]][🚎lts-cwf] [![Heads][🖐lts-hwfi]][🖐lts-hwf] | [![Open Issues][📗lts-ioi]][📗lts-io] [![Closed Issues][🚀lts-ici]][🚀lts-ic] [![Open PRs][💄lts-poi]][💄lts-po] [![Closed PRs][👽lts-pci]][👽lts-pc] |
95
- | [`rubocop-ruby1_8`][⛳️18-gh] | [![Gem Version][⛳️18-vi]][⛳️18-g] | [![Total DL][🖇️18-dti]][⛳️18-g] [![DL Rank][🏘️18-rti]][⛳️18-g] | [![Current][🚎18-cwfi]][🚎18-cwf] [![Heads][🖐18-hwfi]][🖐18-hwf] | [![Open Issues][📗18-ioi]][📗18-io] [![Closed Issues][🚀18-ici]][🚀18-ic] [![Open PRs][💄18-poi]][💄18-po] [![Closed PRs][👽18-pci]][👽18-pc] |
96
- | [`rubocop-ruby1_9`][⛳️19-gh] | [![Gem Version][⛳️19-vi]][⛳️19-g] | [![Total DL][🖇️19-dti]][⛳️19-g] [![DL Rank][🏘️19-rti]][⛳️19-g] | [![Current][🚎19-cwfi]][🚎19-cwf] [![Heads][🖐19-hwfi]][🖐19-hwf] | [![Open Issues][📗19-ioi]][📗19-io] [![Closed Issues][🚀19-ici]][🚀19-ic] [![Open PRs][💄19-poi]][💄19-po] [![Closed PRs][👽19-pci]][👽19-pc] |
97
- | [`rubocop-ruby2_0`][⛳️20-gh] | [![Gem Version][⛳️20-vi]][⛳️20-g] | [![Total DL][🖇️20-dti]][⛳️20-g] [![DL Rank][🏘️20-rti]][⛳️20-g] | [![Current][🚎20-cwfi]][🚎20-cwf] [![Heads][🖐20-hwfi]][🖐20-hwf] | [![Open Issues][📗20-ioi]][📗20-io] [![Closed Issues][🚀20-ici]][🚀20-ic] [![Open PRs][💄20-poi]][💄20-po] [![Closed PRs][👽20-pci]][👽20-pc] |
98
- | [`rubocop-ruby2_1`][⛳️21-gh] | [![Gem Version][⛳️21-vi]][⛳️21-g] | [![Total DL][🖇️21-dti]][⛳️21-g] [![DL Rank][🏘️21-rti]][⛳️21-g] | [![Current][🚎21-cwfi]][🚎21-cwf] [![Heads][🖐21-hwfi]][🖐21-hwf] | [![Open Issues][📗21-ioi]][📗21-io] [![Closed Issues][🚀21-ici]][🚀21-ic] [![Open PRs][💄21-poi]][💄21-po] [![Closed PRs][👽21-pci]][👽21-pc] |
99
- | [`rubocop-ruby2_2`][⛳️22-gh] | [![Gem Version][⛳️22-vi]][⛳️22-g] | [![Total DL][🖇️22-dti]][⛳️22-g] [![DL Rank][🏘️22-rti]][⛳️22-g] | [![Current][🚎22-cwfi]][🚎22-cwf] [![Heads][🖐22-hwfi]][🖐22-hwf] | [![Open Issues][📗22-ioi]][📗22-io] [![Closed Issues][🚀22-ici]][🚀22-ic] [![Open PRs][💄22-poi]][💄22-po] [![Closed PRs][👽22-pci]][👽22-pc] |
100
- | [`rubocop-ruby2_3`][⛳️23-gh] | [![Gem Version][⛳️23-vi]][⛳️23-g] | [![Total DL][🖇️23-dti]][⛳️23-g] [![DL Rank][🏘️23-rti]][⛳️23-g] | [![Current][🚎23-cwfi]][🚎23-cwf] [![Heads][🖐23-hwfi]][🖐23-hwf] | [![Open Issues][📗23-ioi]][📗23-io] [![Closed Issues][🚀23-ici]][🚀23-ic] [![Open PRs][💄23-poi]][💄23-po] [![Closed PRs][👽23-pci]][👽23-pc] |
101
- | [`rubocop-ruby2_4`][⛳️24-gh] | [![Gem Version][⛳️24-vi]][⛳️24-g] | [![Total DL][🖇️24-dti]][⛳️24-g] [![DL Rank][🏘️24-rti]][⛳️24-g] | [![Current][🚎24-cwfi]][🚎24-cwf] [![Heads][🖐24-hwfi]][🖐24-hwf] | [![Open Issues][📗24-ioi]][📗24-io] [![Closed Issues][🚀24-ici]][🚀24-ic] [![Open PRs][💄24-poi]][💄24-po] [![Closed PRs][👽24-pci]][👽24-pc] |
102
- | [`rubocop-ruby2_5`][⛳️25-gh] | [![Gem Version][⛳️25-vi]][⛳️25-g] | [![Total DL][🖇️25-dti]][⛳️25-g] [![DL Rank][🏘️25-rti]][⛳️25-g] | [![Current][🚎25-cwfi]][🚎25-cwf] [![Heads][🖐25-hwfi]][🖐25-hwf] | [![Open Issues][📗25-ioi]][📗25-io] [![Closed Issues][🚀25-ici]][🚀25-ic] [![Open PRs][💄25-poi]][💄25-po] [![Closed PRs][👽25-pci]][👽25-pc] |
103
- | [`rubocop-ruby2_6`][⛳️26-gh] | [![Gem Version][⛳️26-vi]][⛳️26-g] | [![Total DL][🖇️26-dti]][⛳️26-g] [![DL Rank][🏘️26-rti]][⛳️26-g] | [![Current][🚎26-cwfi]][🚎26-cwf] [![Heads][🖐26-hwfi]][🖐26-hwf] | [![Open Issues][📗26-ioi]][📗26-io] [![Closed Issues][🚀26-ici]][🚀26-ic] [![Open PRs][💄26-poi]][💄26-po] [![Closed PRs][👽26-pci]][👽26-pc] |
104
- | [`rubocop-ruby2_7`][⛳️27-gh] | [![Gem Version][⛳️27-vi]][⛳️27-g] | [![Total DL][🖇️27-dti]][⛳️27-g] [![DL Rank][🏘️27-rti]][⛳️27-g] | [![Current][🚎27-cwfi]][🚎27-cwf] [![Heads][🖐27-hwfi]][🖐27-hwf] | [![Open Issues][📗27-ioi]][📗27-io] [![Closed Issues][🚀27-ici]][🚀27-ic] [![Open PRs][💄27-poi]][💄27-po] [![Closed PRs][👽27-pci]][👽27-pc] |
105
- | [`rubocop-ruby3_0`][⛳️30-gh] | [![Gem Version][⛳️30-vi]][⛳️30-g] | [![Total DL][🖇️30-dti]][⛳️30-g] [![DL Rank][🏘️30-rti]][⛳️30-g] | [![Current][🚎30-cwfi]][🚎30-cwf] [![Heads][🖐30-hwfi]][🖐30-hwf] | [![Open Issues][📗30-ioi]][📗30-io] [![Closed Issues][🚀30-ici]][🚀30-ic] [![Open PRs][💄30-poi]][💄30-po] [![Closed PRs][👽30-pci]][👽30-pc] |
106
- | [`rubocop-ruby3_1`][⛳️31-gh] | [![Gem Version][⛳️31-vi]][⛳️31-g] | [![Total DL][🖇️31-dti]][⛳️31-g] [![DL Rank][🏘️31-rti]][⛳️31-g] | [![Current][🚎31-cwfi]][🚎31-cwf] [![Heads][🖐31-hwfi]][🖐31-hwf] | [![Open Issues][📗31-ioi]][📗31-io] [![Closed Issues][🚀31-ici]][🚀31-ic] [![Open PRs][💄31-poi]][💄31-po] [![Closed PRs][👽31-pci]][👽31-pc] |
107
- | [`rubocop-ruby3_2`][⛳️32-gh] | [![Gem Version][⛳️32-vi]][⛳️32-g] | [![Total DL][🖇️32-dti]][⛳️32-g] [![DL Rank][🏘️32-rti]][⛳️32-g] | [![Current][🚎32-cwfi]][🚎32-cwf] [![Heads][🖐32-hwfi]][🖐32-hwf] | [![Open Issues][📗32-ioi]][📗32-io] [![Closed Issues][🚀32-ici]][🚀32-ic] [![Open PRs][💄32-poi]][💄32-po] [![Closed PRs][👽32-pci]][👽32-pc] |
173
+ > NOTE: For more on how Ruby 1.8 support works, look [here][what1_8]
108
174
 
109
- ## Installation ✨
175
+ [what1_8]: https://github.com/rubocop-lts/rubocop-ruby1_9#what-about-ruby-18
110
176
 
111
- Install the gem and add to the application's Gemfile by executing:
177
+ ## 👩‍💻 Project Health
112
178
 
113
- $ bundle add rubocop-lts -r false
179
+ | Gem Name | Version | Downloads | CI | Activity |
180
+ |------------------------------|-------------------------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
181
+ | [`rubocop-lts`][⛳️lts-gh] | [![Gem Version][⛳️lts-vi]][⛳️lts-g] | [![Total DL][🖇️lts-dti]][⛳️lts-g] [![DL Rank][🏘️lts-rti]][⛳️lts-g] | [![Current][🚎lts-cwfi]][🚎lts-cwf] [![Legacy][🧮lts-lwfi]][🧮lts-lwf] [![Heads][🖐lts-hwfi]][🖐lts-hwf] | [![Open Issues][📗lts-ioi]][📗lts-io] [![Closed Issues][🚀lts-ici]][🚀lts-ic] [![Open PRs][💄lts-poi]][💄lts-po] [![Closed PRs][👽lts-pci]][👽lts-pc] |
182
+ | [`rubocop-ruby1_9`][⛳️19-gh] | [![Gem Version][⛳️19-vi]][⛳️19-g] | [![Total DL][🖇️19-dti]][⛳️19-g] [![DL Rank][🏘️19-rti]][⛳️19-g] | [![Current][🚎19-cwfi]][🚎19-cwf] [![Legacy][🧮19-lwfi]][🧮19-lwf] | [![Open Issues][📗19-ioi]][📗19-io] [![Closed Issues][🚀19-ici]][🚀19-ic] [![Open PRs][💄19-poi]][💄19-po] [![Closed PRs][👽19-pci]][👽19-pc] |
183
+ | [`rubocop-ruby2_0`][⛳️20-gh] | [![Gem Version][⛳️20-vi]][⛳️20-g] | [![Total DL][🖇️20-dti]][⛳️20-g] [![DL Rank][🏘️20-rti]][⛳️20-g] | [![Current][🚎20-cwfi]][🚎20-cwf] [![Legacy][🧮20-lwfi]][🧮20-lwf] | [![Open Issues][📗20-ioi]][📗20-io] [![Closed Issues][🚀20-ici]][🚀20-ic] [![Open PRs][💄20-poi]][💄20-po] [![Closed PRs][👽20-pci]][👽20-pc] |
184
+ | [`rubocop-ruby2_1`][⛳️21-gh] | [![Gem Version][⛳️21-vi]][⛳️21-g] | [![Total DL][🖇️21-dti]][⛳️21-g] [![DL Rank][🏘️21-rti]][⛳️21-g] | [![Current][🚎21-cwfi]][🚎21-cwf] [![Legacy][🧮21-lwfi]][🧮21-lwf] | [![Open Issues][📗21-ioi]][📗21-io] [![Closed Issues][🚀21-ici]][🚀21-ic] [![Open PRs][💄21-poi]][💄21-po] [![Closed PRs][👽21-pci]][👽21-pc] |
185
+ | [`rubocop-ruby2_2`][⛳️22-gh] | [![Gem Version][⛳️22-vi]][⛳️22-g] | [![Total DL][🖇️22-dti]][⛳️22-g] [![DL Rank][🏘️22-rti]][⛳️22-g] | [![Current][🚎22-cwfi]][🚎22-cwf] [![Legacy][🧮22-lwfi]][🧮22-lwf] | [![Open Issues][📗22-ioi]][📗22-io] [![Closed Issues][🚀22-ici]][🚀22-ic] [![Open PRs][💄22-poi]][💄22-po] [![Closed PRs][👽22-pci]][👽22-pc] |
186
+ | [`rubocop-ruby2_3`][⛳️23-gh] | [![Gem Version][⛳️23-vi]][⛳️23-g] | [![Total DL][🖇️23-dti]][⛳️23-g] [![DL Rank][🏘️23-rti]][⛳️23-g] | [![Current][🚎23-cwfi]][🚎23-cwf] [![Legacy][🧮23-lwfi]][🧮23-lwf] | [![Open Issues][📗23-ioi]][📗23-io] [![Closed Issues][🚀23-ici]][🚀23-ic] [![Open PRs][💄23-poi]][💄23-po] [![Closed PRs][👽23-pci]][👽23-pc] |
187
+ | [`rubocop-ruby2_4`][⛳️24-gh] | [![Gem Version][⛳️24-vi]][⛳️24-g] | [![Total DL][🖇️24-dti]][⛳️24-g] [![DL Rank][🏘️24-rti]][⛳️24-g] | [![Current][🚎24-cwfi]][🚎24-cwf] [![Legacy][🧮24-lwfi]][🧮24-lwf] | [![Open Issues][📗24-ioi]][📗24-io] [![Closed Issues][🚀24-ici]][🚀24-ic] [![Open PRs][💄24-poi]][💄24-po] [![Closed PRs][👽24-pci]][👽24-pc] |
188
+ | [`rubocop-ruby2_5`][⛳️25-gh] | [![Gem Version][⛳️25-vi]][⛳️25-g] | [![Total DL][🖇️25-dti]][⛳️25-g] [![DL Rank][🏘️25-rti]][⛳️25-g] | [![Current][🚎25-cwfi]][🚎25-cwf] [![Heads][🖐25-hwfi]][🖐25-hwf] [![Legacy][🧮25-lwfi]][🧮25-lwf] | [![Open Issues][📗25-ioi]][📗25-io] [![Closed Issues][🚀25-ici]][🚀25-ic] [![Open PRs][💄25-poi]][💄25-po] [![Closed PRs][👽25-pci]][👽25-pc] |
189
+ | [`rubocop-ruby2_6`][⛳️26-gh] | [![Gem Version][⛳️26-vi]][⛳️26-g] | [![Total DL][🖇️26-dti]][⛳️26-g] [![DL Rank][🏘️26-rti]][⛳️26-g] | [![Current][🚎26-cwfi]][🚎26-cwf] [![Heads][🖐26-hwfi]][🖐26-hwf] [![Legacy][🧮26-lwfi]][🧮26-lwf] | [![Open Issues][📗26-ioi]][📗26-io] [![Closed Issues][🚀26-ici]][🚀26-ic] [![Open PRs][💄26-poi]][💄26-po] [![Closed PRs][👽26-pci]][👽26-pc] |
190
+ | [`rubocop-ruby2_7`][⛳️27-gh] | [![Gem Version][⛳️27-vi]][⛳️27-g] | [![Total DL][🖇️27-dti]][⛳️27-g] [![DL Rank][🏘️27-rti]][⛳️27-g] | [![Current][🚎27-cwfi]][🚎27-cwf] [![Heads][🖐27-hwfi]][🖐27-hwf] | [![Open Issues][📗27-ioi]][📗27-io] [![Closed Issues][🚀27-ici]][🚀27-ic] [![Open PRs][💄27-poi]][💄27-po] [![Closed PRs][👽27-pci]][👽27-pc] |
191
+ | [`rubocop-ruby3_0`][⛳️30-gh] | [![Gem Version][⛳️30-vi]][⛳️30-g] | [![Total DL][🖇️30-dti]][⛳️30-g] [![DL Rank][🏘️30-rti]][⛳️30-g] | [![Current][🚎30-cwfi]][🚎30-cwf] [![Heads][🖐30-hwfi]][🖐30-hwf] | [![Open Issues][📗30-ioi]][📗30-io] [![Closed Issues][🚀30-ici]][🚀30-ic] [![Open PRs][💄30-poi]][💄30-po] [![Closed PRs][👽30-pci]][👽30-pc] |
192
+ | [`rubocop-ruby3_1`][⛳️31-gh] | [![Gem Version][⛳️31-vi]][⛳️31-g] | [![Total DL][🖇️31-dti]][⛳️31-g] [![DL Rank][🏘️31-rti]][⛳️31-g] | [![Current][🚎31-cwfi]][🚎31-cwf] [![Heads][🖐31-hwfi]][🖐31-hwf] | [![Open Issues][📗31-ioi]][📗31-io] [![Closed Issues][🚀31-ici]][🚀31-ic] [![Open PRs][💄31-poi]][💄31-po] [![Closed PRs][👽31-pci]][👽31-pc] |
193
+ | [`rubocop-ruby3_2`][⛳️32-gh] | [![Gem Version][⛳️32-vi]][⛳️32-g] | [![Total DL][🖇️32-dti]][⛳️32-g] [![DL Rank][🏘️32-rti]][⛳️32-g] | [![Current][🚎32-cwfi]][🚎32-cwf] [![Heads][🖐32-hwfi]][🖐32-hwf] | [![Open Issues][📗32-ioi]][📗32-io] [![Closed Issues][🚀32-ici]][🚀32-ic] [![Open PRs][💄32-poi]][💄32-po] [![Closed PRs][👽32-pci]][👽32-pc] |
114
194
 
115
- NOTE: If you are using **Rails** remove the `-r false`,
116
- so the Railtie will load and rake tasks will be loaded automatically.
195
+ ## Installation
117
196
 
118
- If bundler is not being used to manage dependencies, install the gem by executing:
197
+ Without bundler execute:
119
198
 
120
- $ gem install rubocop-lts
199
+ $ gem install
121
200
 
122
- Or add this line to your application's Gemfile:
201
+ Add this line to your application's Gemfile:
123
202
 
124
203
  <!-- FIND VERSION -->
125
204
  ```ruby
126
- gem "rubocop-lts", "~> 20.2", require: false
205
+ gem 'rubocop-lts', '~> 21.0', require: false
127
206
  ```
128
207
 
129
208
  And then execute:
130
209
 
131
210
  $ bundle
132
211
 
133
- ### Dependabot Noise Reduction
212
+ ## 🔧 Usage
134
213
 
135
- Add the following to `.github/dependabot.yml` if you use Github Actions.
214
+ The following is optional. We'll discuss why you might want to do this after you see what it does.
215
+
216
+ Add to the top of your project's `.rubocop.yml` configuration file:
136
217
 
137
218
  ```yaml
138
- ignore:
139
- - dependency-name: "rubocop-lts"
219
+ inherit_gem:
220
+ - rubocop-lts.yml
221
+ ```
222
+
223
+ ## Development
224
+
225
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
226
+
227
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
228
+
229
+ ### Git Branch Names
230
+
231
+ #### Naming Scheme
232
+
233
+ ```ruby
234
+ "r{{ ruby major }}_{{ ruby minor }}-{{ parity }}-v{{ gem-version }}"
140
235
  ```
141
236
 
237
+ ##### Parity
238
+
239
+ Even versions use the token `even` in the branch name.
240
+ Odd versions use the token `odd` in the branch name.
241
+
242
+ #### Version - Branch Matrix
243
+
244
+ | Ruby Version | Parity | Gem Version | Branch Name | Purpose |
245
+ |-----------------|--------|-------------|-----------------|-----------------------------------|
246
+ | 1.9 | odd | 1.x | `r1_9-odd-v1` | LTS, trunk, single-ruby-linting |
247
+ | 1.9 | even | 2.x | `r1_9-even-v2` | Upgrade, feat, multi-ruby-linting |
248
+ | 2.0 | odd | 3.x | `r2_0-odd-v3` | LTS, trunk, single-ruby-linting |
249
+ | 2.0 | even | 4.x | `r2_0-even-v4` | Upgrade, feat, multi-ruby-linting |
250
+ | 2.1 | odd | 5.x | `r2_1-odd-v5` | LTS, trunk, single-ruby-linting |
251
+ | 2.1 | even | 6.x | `r2_1-even-v6` | Upgrade, feat, multi-ruby-linting |
252
+ | 2.2 | odd | 7.x | `r2_2-odd-v7` | LTS, trunk, single-ruby-linting |
253
+ | 2.2 | even | 8.x | `r2_2-even-v8` | Upgrade, feat, multi-ruby-linting |
254
+ | 2.3 | odd | 9.x | `r2_3-odd-v9` | LTS, trunk, single-ruby-linting |
255
+ | 2.3 | even | 10.x | `r2_3-even-v10` | Upgrade, feat, multi-ruby-linting |
256
+ | 2.4 | odd | 11.x | `r2_4-odd-v11` | LTS, trunk, single-ruby-linting |
257
+ | 2.4 | even | 12.x | `r2_4-even-v12` | Upgrade, feat, multi-ruby-linting |
258
+ | 2.5 | odd | 13.x | `r2_5-odd-v13` | LTS, trunk, single-ruby-linting |
259
+ | 2.5 | even | 14.x | `r2_5-even-v14` | Upgrade, feat, multi-ruby-linting |
260
+ | 2.6 | odd | 15.x | `r2_6-odd-v15` | LTS, trunk, single-ruby-linting |
261
+ | 2.6 | even | 16.x | `r2_6-even-v16` | Upgrade, feat, multi-ruby-linting |
262
+ | 2.7 | odd | 17.x | `r2_7-odd-v17` | LTS, trunk, single-ruby-linting |
263
+ | 2.7 | even | 18.x | `r2_7-even-v18` | Upgrade, feat, multi-ruby-linting |
264
+ | 3.0 | odd | 19.x | `r3_0-odd-v19` | LTS, trunk, single-ruby-linting |
265
+ | 3.0 | even | 20.x | `r3_0-even-v20` | Upgrade, feat, multi-ruby-linting |
266
+ | 3.1 | odd | 21.x | `r3_1-odd-v21` | LTS, trunk, single-ruby-linting |
267
+ | 3.1 | even | 22.x | `r3_1-even-v22` | Upgrade, feat, multi-ruby-linting |
268
+ | 3.2 / ruby-head | odd | 23.x | `r3_2-odd-v23` | LTS, trunk, single-ruby-linting |
269
+ | 3.2 / ruby-head | even | 24.x | `r3_2-even-v24` | Upgrade, feat, multi-ruby-linting |
270
+
271
+ > NOTE: For more on how Ruby 1.8 support works, see [above][lts1_8]
272
+
273
+ [lts1_8]: https://github.com/rubocop-lts/rubocop-lts#supporting-ruby-18
274
+
275
+ ## ⚡️ Contributing
276
+
277
+ See [CONTRIBUTING.md][contributing]
278
+
279
+ ## 🌈 Contributors
280
+
281
+ [![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-lts)]("https://github.com/rubocop-lts/rubocop-lts/graphs/contributors")
282
+
283
+ Made with [contributors-img](https://contrib.rocks).
284
+
285
+ ## 📄 License
286
+
287
+ The gem is available as open source under the terms of
288
+ the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
289
+ See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
290
+
291
+ <details>
292
+ <summary>Project Logos (rubocop-lts)</summary>
293
+
294
+ See [docs/images/logo/README.txt][project-logos]
295
+ </details>
296
+
297
+ <details>
298
+ <summary>Organization Logo (rubocop-semver)</summary>
299
+
300
+ Author: [Yusuf Evli][org-logo-author]
301
+ Source: [Unsplash][org-logo-source]
302
+ License: [Unsplash License][org-logo-license]
303
+ </details>
304
+
305
+ [project-logos]: https://github.com/rubocop-lts/rubocop-lts/blob/main/docs/images/logo/README.txt
306
+ [org-logo-author]: https://unsplash.com/@yusufevli
307
+ [org-logo-source]: https://unsplash.com/photos/yaSLNLtKRIU
308
+ [org-logo-license]: https://unsplash.com/license
309
+
310
+ ### © Copyright
311
+
312
+ * Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
313
+
314
+ ## 🤝 Code of Conduct
315
+
316
+ Everyone interacting in Rubocop LTS codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/rubocop-lts/blob/main/CODE_OF_CONDUCT.md).
317
+
318
+ ## 📌 Versioning
319
+
320
+ This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as
321
+ bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be
322
+ immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new
323
+ major versions.
324
+
325
+ As a result of this policy, you can (and should) specify a dependency on this gem using
326
+ the [Pessimistic Version Constraint][pvc] with two digits of precision.
327
+
328
+ For example:
329
+
330
+ <!-- FIND VERSION -->
331
+ ```ruby
332
+ spec.add_dependency "rubocop-lts", "~> 21.0"
333
+ ```
334
+
335
+
142
336
  <!-- columnar badge #s for Project Health table:
143
337
  ⛳️
144
338
  🖇
@@ -159,6 +353,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
159
353
  [🚎lts-cwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/current.yml/badge.svg
160
354
  [🖐lts-hwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/heads.yml
161
355
  [🖐lts-hwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/heads.yml/badge.svg
356
+ [🧮lts-lwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/legacy.yml
357
+ [🧮lts-lwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/legacy.yml/badge.svg
162
358
  [📗lts-io]: https://github.com/rubocop-lts/rubocop-lts/issues
163
359
  [📗lts-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-lts
164
360
  [🚀lts-ic]: https://github.com/rubocop-lts/rubocop-lts/issues?q=is%3Aissue+is%3Aclosed
@@ -169,23 +365,6 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
169
365
  [👽lts-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-lts
170
366
  [⛳️lts-g]: https://rubygems.org/gems/rubocop-lts
171
367
  [⛳️lts-gh]: https://github.com/rubocop-lts/rubocop-lts
172
- [⛳️18-vi]: http://img.shields.io/gem/v/rubocop-ruby1_8.svg
173
- [🖇️18-dti]: https://img.shields.io/gem/dt/rubocop-ruby1_8.svg
174
- [🏘️18-rti]: https://img.shields.io/gem/rt/rubocop-ruby1_8.svg
175
- [🚎18-cwf]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/current.yml
176
- [🚎18-cwfi]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/current.yml/badge.svg
177
- [🖐18-hwf]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/heads.yml
178
- [🖐18-hwfi]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/heads.yml/badge.svg
179
- [📗18-io]: https://github.com/rubocop-lts/rubocop-ruby1_8/issues
180
- [📗18-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby1_8
181
- [🚀18-ic]: https://github.com/rubocop-lts/rubocop-ruby1_8/issues?q=is%3Aissue+is%3Aclosed
182
- [🚀18-ici]: https://img.shields.io/github/issues-closed-raw/rubocop-lts/rubocop-ruby1_8
183
- [💄18-po]: https://github.com/rubocop-lts/rubocop-ruby1_8/pulls
184
- [💄18-poi]: https://img.shields.io/github/issues-pr/rubocop-lts/rubocop-ruby1_8
185
- [👽18-pc]: https://github.com/rubocop-lts/rubocop-ruby1_8/pulls?q=is%3Apr+is%3Aclosed
186
- [👽18-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-ruby1_8
187
- [⛳️18-g]: https://rubygems.org/gems/rubocop-ruby1_8
188
- [⛳️18-gh]: https://github.com/rubocop-lts/rubocop-ruby1_8
189
368
  [⛳️19-vi]: http://img.shields.io/gem/v/rubocop-ruby1_9.svg
190
369
  [🖇️19-dti]: https://img.shields.io/gem/dt/rubocop-ruby1_9.svg
191
370
  [🏘️19-rti]: https://img.shields.io/gem/rt/rubocop-ruby1_9.svg
@@ -193,6 +372,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
193
372
  [🚎19-cwfi]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/current.yml/badge.svg
194
373
  [🖐19-hwf]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/heads.yml
195
374
  [🖐19-hwfi]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/heads.yml/badge.svg
375
+ [🧮19-lwf]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/legacy.yml
376
+ [🧮19-lwfi]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/legacy.yml/badge.svg
196
377
  [📗19-io]: https://github.com/rubocop-lts/rubocop-ruby1_9/issues
197
378
  [📗19-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby1_9
198
379
  [🚀19-ic]: https://github.com/rubocop-lts/rubocop-ruby1_9/issues?q=is%3Aissue+is%3Aclosed
@@ -210,6 +391,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
210
391
  [🚎20-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/current.yml/badge.svg
211
392
  [🖐20-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/heads.yml
212
393
  [🖐20-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/heads.yml/badge.svg
394
+ [🧮20-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/legacy.yml
395
+ [🧮20-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/legacy.yml/badge.svg
213
396
  [📗20-io]: https://github.com/rubocop-lts/rubocop-ruby2_0/issues
214
397
  [📗20-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_0
215
398
  [🚀20-ic]: https://github.com/rubocop-lts/rubocop-ruby2_0/issues?q=is%3Aissue+is%3Aclosed
@@ -227,6 +410,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
227
410
  [🚎21-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/current.yml/badge.svg
228
411
  [🖐21-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/heads.yml
229
412
  [🖐21-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/heads.yml/badge.svg
413
+ [🧮21-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/legacy.yml
414
+ [🧮21-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/legacy.yml/badge.svg
230
415
  [📗21-io]: https://github.com/rubocop-lts/rubocop-ruby2_1/issues
231
416
  [📗21-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_1
232
417
  [🚀21-ic]: https://github.com/rubocop-lts/rubocop-ruby2_1/issues?q=is%3Aissue+is%3Aclosed
@@ -244,6 +429,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
244
429
  [🚎22-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/current.yml/badge.svg
245
430
  [🖐22-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/heads.yml
246
431
  [🖐22-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/heads.yml/badge.svg
432
+ [🧮22-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/legacy.yml
433
+ [🧮22-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/legacy.yml/badge.svg
247
434
  [📗22-io]: https://github.com/rubocop-lts/rubocop-ruby2_2/issues
248
435
  [📗22-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_2
249
436
  [🚀22-ic]: https://github.com/rubocop-lts/rubocop-ruby2_2/issues?q=is%3Aissue+is%3Aclosed
@@ -261,6 +448,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
261
448
  [🚎23-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/current.yml/badge.svg
262
449
  [🖐23-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/heads.yml
263
450
  [🖐23-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/heads.yml/badge.svg
451
+ [🧮23-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/legacy.yml
452
+ [🧮23-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/legacy.yml/badge.svg
264
453
  [📗23-io]: https://github.com/rubocop-lts/rubocop-ruby2_3/issues
265
454
  [📗23-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_3
266
455
  [🚀23-ic]: https://github.com/rubocop-lts/rubocop-ruby2_3/issues?q=is%3Aissue+is%3Aclosed
@@ -278,6 +467,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
278
467
  [🚎24-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/current.yml/badge.svg
279
468
  [🖐24-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/heads.yml
280
469
  [🖐24-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/heads.yml/badge.svg
470
+ [🧮24-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/legacy.yml
471
+ [🧮24-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/legacy.yml/badge.svg
281
472
  [📗24-io]: https://github.com/rubocop-lts/rubocop-ruby2_4/issues
282
473
  [📗24-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_4
283
474
  [🚀24-ic]: https://github.com/rubocop-lts/rubocop-ruby2_4/issues?q=is%3Aissue+is%3Aclosed
@@ -295,6 +486,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
295
486
  [🚎25-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/current.yml/badge.svg
296
487
  [🖐25-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/heads.yml
297
488
  [🖐25-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/heads.yml/badge.svg
489
+ [🧮25-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/legacy.yml
490
+ [🧮25-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/legacy.yml/badge.svg
298
491
  [📗25-io]: https://github.com/rubocop-lts/rubocop-ruby2_5/issues
299
492
  [📗25-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_5
300
493
  [🚀25-ic]: https://github.com/rubocop-lts/rubocop-ruby2_5/issues?q=is%3Aissue+is%3Aclosed
@@ -312,6 +505,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
312
505
  [🚎26-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/current.yml/badge.svg
313
506
  [🖐26-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/heads.yml
314
507
  [🖐26-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/heads.yml/badge.svg
508
+ [🧮26-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/legacy.yml
509
+ [🧮26-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/legacy.yml/badge.svg
315
510
  [📗26-io]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues
316
511
  [📗26-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_6
317
512
  [🚀26-ic]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues?q=is%3Aissue+is%3Aclosed
@@ -329,6 +524,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
329
524
  [🚎27-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/current.yml/badge.svg
330
525
  [🖐27-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/heads.yml
331
526
  [🖐27-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/heads.yml/badge.svg
527
+ [🧮27-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/legacy.yml
528
+ [🧮27-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/legacy.yml/badge.svg
332
529
  [📗27-io]: https://github.com/rubocop-lts/rubocop-ruby2_7/issues
333
530
  [📗27-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_7
334
531
  [🚀27-ic]: https://github.com/rubocop-lts/rubocop-ruby2_7/issues?q=is%3Aissue+is%3Aclosed
@@ -346,6 +543,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
346
543
  [🚎30-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/current.yml/badge.svg
347
544
  [🖐30-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml
348
545
  [🖐30-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml/badge.svg
546
+ [🧮30-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml
547
+ [🧮30-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml/badge.svg
349
548
  [📗30-io]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
350
549
  [📗30-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_0
351
550
  [🚀30-ic]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues?q=is%3Aissue+is%3Aclosed
@@ -363,6 +562,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
363
562
  [🚎31-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/current.yml/badge.svg
364
563
  [🖐31-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/heads.yml
365
564
  [🖐31-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/heads.yml/badge.svg
565
+ [🧮31-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/legacy.yml
566
+ [🧮31-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/legacy.yml/badge.svg
366
567
  [📗31-io]: https://github.com/rubocop-lts/rubocop-ruby3_1/issues
367
568
  [📗31-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_1
368
569
  [🚀31-ic]: https://github.com/rubocop-lts/rubocop-ruby3_1/issues?q=is%3Aissue+is%3Aclosed
@@ -380,6 +581,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
380
581
  [🚎32-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/current.yml/badge.svg
381
582
  [🖐32-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/heads.yml
382
583
  [🖐32-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/heads.yml/badge.svg
584
+ [🧮32-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/legacy.yml
585
+ [🧮32-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/legacy.yml/badge.svg
383
586
  [📗32-io]: https://github.com/rubocop-lts/rubocop-ruby3_2/issues
384
587
  [📗32-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_2
385
588
  [🚀32-ic]: https://github.com/rubocop-lts/rubocop-ruby3_2/issues?q=is%3Aissue+is%3Aclosed
@@ -423,6 +626,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
423
626
 
424
627
  [tweetme]: http://twitter.com/galtzo
425
628
 
629
+ [politicme]: https://nationalprogressiveparty.org
630
+
426
631
  [documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-lts/main
427
632
 
428
633
  [source]: https://github.com/rubocop-lts/rubocop-lts/
data/SECURITY.md CHANGED
@@ -2,37 +2,30 @@
2
2
 
3
3
  ## Supported Versions
4
4
 
5
- Major even versions are supported.
6
-
7
- Major odd versions are not supported, and no further odd major releases are planned.
8
-
9
- | Version | Supported |
10
- |-----------|-----------|
11
- | 0.latest | |
12
- | 1.latest | |
13
- | 2.latest | |
14
- | 3.latest | |
15
- | 4.latest | |
16
- | 5.latest | |
17
- | 6.latest | |
18
- | 7.latest | |
19
- | 8.latest | |
20
- | 9.latest | |
21
- | 10.latest | |
22
- | 11.latest | |
23
- | 12.latest | |
24
- | 13.latest | |
25
- | 14.latest | |
26
- | 15.latest | |
27
- | 16.latest | |
28
- | 17.latest | |
29
- | 18.latest | ✅ |
30
- | 19.latest | ❌ |
31
- | 20.latest | ✅ |
32
- | 21.latest | ❌ |
33
- | 22.latest | ✅ |
34
- | 23.latest | ❌ |
35
- | 24.latest | ✅ |
5
+ | Version | Supported |
6
+ |---------|--------------------|
7
+ | 1.x | :white_check_mark: |
8
+ | 2.x | :white_check_mark: |
9
+ | 3.x | :white_check_mark: |
10
+ | 4.x | :white_check_mark: |
11
+ | 5.x | :white_check_mark: |
12
+ | 6.x | :white_check_mark: |
13
+ | 7.x | :white_check_mark: |
14
+ | 8.x | :white_check_mark: |
15
+ | 9.x | :white_check_mark: |
16
+ | 10.x | :white_check_mark: |
17
+ | 11.x | :white_check_mark: |
18
+ | 12.x | :white_check_mark: |
19
+ | 13.x | :white_check_mark: |
20
+ | 14.x | :white_check_mark: |
21
+ | 15.x | :white_check_mark: |
22
+ | 16.x | :white_check_mark: |
23
+ | 17.x | :white_check_mark: |
24
+ | 18.x | :white_check_mark: |
25
+ | 19.x | :white_check_mark: |
26
+ | 20.x | :white_check_mark: |
27
+ | 21.x | :white_check_mark: |
28
+ | 22.x | :white_check_mark: |
36
29
 
37
30
  ## Reporting a Vulnerability
38
31
 
@@ -2,8 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Lts
5
- module Version
6
- VERSION = "20.2.1"
7
- end
5
+ VERSION = "21.0.0"
8
6
  end
9
7
  end
data/lib/rubocop/lts.rb CHANGED
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # external libs
4
- require "version_gem"
5
-
6
3
  require_relative "lts/version"
7
4
 
8
5
  module Rubocop
@@ -11,7 +8,3 @@ module Rubocop
11
8
  # Your code goes here...
12
9
  end
13
10
  end
14
-
15
- Rubocop::Lts::Version.class_eval do
16
- extend VersionGem::Basic
17
- end
data/rubocop-lts.yml CHANGED
@@ -1,15 +1,2 @@
1
- # Change the file you inherit if you:
2
- # * use Rails,
3
- # * are creating a RubyGem, or
4
- # * don't use RSpec
5
- # As follows:
6
- # inherit_gem:
7
- # # Pick one:
8
- # # rubocop-lts: config/rails_rspec.yml # or config/rails.yml w/o rspec
9
- # # rubocop-lts: config/ruby_rspec.yml # or config/ruby.yml w/o rspec
10
- # # rubocop-lts: config/rubygem_rspec.yml # or config/rubygem.yml w/o rspec
11
- # # Convention over configuration, hence loading this file just only Ruby and RSpec defaults:
12
- # rubocop-lts: rubocop-lts.yml # for the ruby + rspec
13
-
14
- inherit_from:
15
- - config/ruby_rspec.yml
1
+ inherit_gem:
2
+ rubocop-ruby3_1: rubocop.yml
data/sig/rubocop/lts.rbs CHANGED
@@ -1,8 +1,6 @@
1
1
  module Rubocop
2
2
  module Lts
3
- module Version
4
- VERSION: String
5
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
- end
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
7
5
  end
8
6
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |config|
4
+ # Enable flags like --only-failures and --next-failure
5
+ config.example_status_persistence_file_path = ".rspec_status"
6
+
7
+ # Disable RSpec exposing methods globally on `Module` and `main`
8
+ config.disable_monkey_patching!
9
+
10
+ config.expect_with :rspec do |c|
11
+ c.syntax = :expect
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Rubocop::Lts do
4
+ it "has a version number" do
5
+ expect(Rubocop::Lts::VERSION).not_to be nil
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This gem
4
+ require "rubocop/lts"
5
+
6
+ # RSpec Configs
7
+ require "config/rspec/rspec_core"
metadata CHANGED
@@ -1,112 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-lts
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.2.1
4
+ version: 21.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
8
  autorequire:
9
9
  bindir: exe
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
14
- ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0yMjA5MTgyMzEyMzBaFw0yMzA5MTgyMzEyMzBaMEMxFTATBgNVBAMM
16
- DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
17
- LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA2Dn1GM3W
18
- 8K2/rvN1zz+06bQMcxD16ZKTihVwi7Pb1v3T98rM4Omnxohm3s+CwpDWGeiB9pj6
19
- 0I/CTce0e4e3s8GKJSOrg93veImPSoH2PfsMsRsuB8wtqyiOCjLbF5o6S29x87r0
20
- LA5EawH+Lh4xqrkkPjdffsmLk7TaCig/vlmNvnzxXKBdey/X/aEJZXzzBiWRfVdh
21
- O1fmMbVKyieGv9HK7+pLotIoT08bjDv8NP6V7zZslwQRqW27bQc6cqC2LGIbTYO3
22
- 3jt1kQxfMWmhOictS6SzG9VtKSrXf0L4Neq0Gh7CLBZBvJFWJYZPfb92YNITDbd8
23
- emPOAQlXXNMN4mMXsEqtEhCPZRMnmwO+fOk/cC4AyglKi9lnQugCQoFV1XDMZST/
24
- CYbzdQyadOdPDInTntG6V+Uw51d2QGXZ6PDDfrx9+toc/3sl5h68rCUGgE6Q3jPz
25
- srinqmBsxv2vTpmd4FjmiAtEnwH5/ooLpQYL8UdAjEoeysxS3AwIh+5dAgMBAAGj
26
- fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQWU6D156a2cle+
27
- lb5RBfvVXlxTwjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
28
- A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
29
- ggGBAJ4SqhPlgUiLYIrphGXIaxXScHyvx4kixuvdrwhI4VoQV2qXvO7R6ZjOXVwX
30
- f/z84BWPiTZ8lzThPbt1UV/BGwkvLw9I4RjOdzvUz3J42j9Ly6q63isall07bo3F
31
- QWe/OBvIMBF1IbjC3q5vKPg4rq8+TkNRJNoE86U2gfR+PkW3jYYs9uiy0GloHDCP
32
- k5xgaj0vSL0Uy5mTOPdk3K6a/sUGZyYniWK05zdhIi956ynhfGaFO988FFdVw5Jq
33
- LHtXfIpAU8F7ES04syZSslxOluw7VlcSKyRdVIr737J92ZTduppB4PRGSKRgBsWV
34
- hXTahRE72Kyw53Q7FAuzF3v102WxAAQ7BuMjW+MyCUT75fwPm3W4ELPL8HYkNGE7
35
- 2oA5CPghFitRnvYS3GNrDG+9bNiRMEskeaBYwZ9UgReBQIwGYVj7LZk3UhiAsn44
36
- gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
37
- 4/bR9A==
38
- -----END CERTIFICATE-----
39
- date: 2023-05-22 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2022-05-23 00:00:00.000000000 Z
40
12
  dependencies:
41
13
  - !ruby/object:Gem::Dependency
42
- name: rubocop-ruby3_0
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 2.0.4
48
- - - "<"
49
- - !ruby/object:Gem::Version
50
- version: '3'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 2.0.4
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '3'
61
- - !ruby/object:Gem::Dependency
62
- name: version_gem
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: 1.1.2
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.1.2
78
- - - "<"
79
- - !ruby/object:Gem::Version
80
- version: '3'
81
- - !ruby/object:Gem::Dependency
82
- name: rubocop-packaging
14
+ name: rubocop-ruby3_1
83
15
  requirement: !ruby/object:Gem::Requirement
84
16
  requirements:
85
17
  - - "~>"
86
18
  - !ruby/object:Gem::Version
87
- version: '0.5'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '0.5'
95
- - !ruby/object:Gem::Dependency
96
- name: rubocop-rspec
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '2.22'
102
- type: :development
19
+ version: 1.0.3
20
+ type: :runtime
103
21
  prerelease: false
104
22
  version_requirements: !ruby/object:Gem::Requirement
105
23
  requirements:
106
24
  - - "~>"
107
25
  - !ruby/object:Gem::Version
108
- version: '2.22'
109
- description: Configure RuboCop + a bevy of friends to gradually lint Ruby code
26
+ version: 1.0.3
27
+ description: Rubocop LTS - Chaos Reduction In a Bottle
110
28
  email:
111
29
  - peter.boling@gmail.com
112
30
  executables: []
@@ -119,28 +37,23 @@ files:
119
37
  - LICENSE.txt
120
38
  - README.md
121
39
  - SECURITY.md
122
- - config/rails.yml
123
- - config/rails_rspec.yml
124
- - config/rspec.yml
125
- - config/ruby.yml
126
- - config/ruby_rspec.yml
127
- - config/rubygem.yml
128
- - config/rubygem_rspec.yml
129
40
  - lib/rubocop/lts.rb
130
41
  - lib/rubocop/lts/version.rb
131
42
  - rubocop-lts.yml
132
43
  - sig/rubocop/lts.rbs
133
- homepage: https://gitlab.com/rubocop-lts/rubocop-lts
44
+ - spec/config/rspec/rspec_core.rb
45
+ - spec/rubocop/lts_spec.rb
46
+ - spec/spec_helper.rb
47
+ homepage: https://github.com/rubocop-lts/rubocop-lts
134
48
  licenses:
135
49
  - MIT
136
50
  metadata:
137
- homepage_uri: https://gitlab.com/rubocop-lts/rubocop-lts
138
- source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v20.2.1
139
- changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v20.2.1/CHANGELOG.md
140
- bug_tracker_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/issues
141
- documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/20.2.1
142
- wiki_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/wiki
143
- funding_uri: https://liberapay.com/pboling
51
+ homepage_uri: https://github.com/rubocop-lts/rubocop-lts
52
+ source_code_uri: https://github.com/rubocop-lts/rubocop-lts/tree/v21.0.0
53
+ changelog_uri: https://github.com/rubocop-lts/rubocop-lts/blob/v21.0.0/CHANGELOG.md
54
+ bug_tracker_uri: https://github.com/rubocop-lts/rubocop-lts/issues
55
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/21.0.0
56
+ wiki_uri: https://github.com/rubocop-lts/rubocop-lts/wiki
144
57
  rubygems_mfa_required: 'true'
145
58
  post_install_message:
146
59
  rdoc_options: []
@@ -150,15 +63,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
63
  requirements:
151
64
  - - ">="
152
65
  - !ruby/object:Gem::Version
153
- version: '3.0'
66
+ version: 3.1.0
67
+ - - "<"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.2'
154
70
  required_rubygems_version: !ruby/object:Gem::Requirement
155
71
  requirements:
156
72
  - - ">="
157
73
  - !ruby/object:Gem::Version
158
74
  version: '0'
159
75
  requirements: []
160
- rubygems_version: 3.4.13
76
+ rubygems_version: 3.3.14
161
77
  signing_key:
162
78
  specification_version: 4
163
- summary: 'Rules for Rubies: Rubocop + Standard + Betterlint + Shopify + Gradual'
164
- test_files: []
79
+ summary: Rubocop LTS - Semantically Versioned
80
+ test_files:
81
+ - spec/config/rspec/rspec_core.rb
82
+ - spec/rubocop/lts_spec.rb
83
+ - spec/spec_helper.rb
checksums.yaml.gz.sig DELETED
Binary file
data/config/rails.yml DELETED
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/rails.yml
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/rails_rspec.yml
data/config/rspec.yml DELETED
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/rspec.yml
data/config/ruby.yml DELETED
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/ruby.yml
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/ruby_rspec.yml
data/config/rubygem.yml DELETED
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/rubygem.yml
@@ -1,2 +0,0 @@
1
- inherit_gem:
2
- rubocop-ruby3_0: rubocop-lts/rubygem_rspec.yml
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file