rubocop-lts 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c21ad69ea22cc996702368cf0f1a08c6871ae297920c95d9995290c260868de7
4
- data.tar.gz: 49605a79bd7374096479554099bca3cfb754a55c7bda268767a8b5a129f9c14c
3
+ metadata.gz: 56dd00ae585c9ff3d1040813cbf3dfff7c0416eda05ee7b2ca0c32d8ded3c44f
4
+ data.tar.gz: a01d0249a0ca8448a0683dbe803cb8cfabb44a439405df40c39d6021956322de
5
5
  SHA512:
6
- metadata.gz: 54b718434b0e5755dcbe33687eba9759461366fe6ad9007b075e3a2a1294f8f4dbee7b91e3279b867fb5775014099108c427c2e1eaae8a4331bfb8eaa61ec4dd
7
- data.tar.gz: 15c9bcbaa1afd8aef9fe1e68fb512df8c3f40e5e74e6644ec30af8b46788340ef8f7bd3c849983df5856081959fc012d548c856944fd898ab68fd23790c76926
6
+ metadata.gz: c53b093b987c7928e6282efa154555de82497b718d9ab750092b8877359d624e3b1704b8fa9fe2c2d3e3f938c9e4212a4cae4d6c7a51e61889735687af052bc8
7
+ data.tar.gz: a1faab69f963cbd1481419ec11e9f0e7c08d44160d0fefa21fd56ba800ab239deed49f6c6a86083fdf7cb747d8da1e44353802b5c0a75e6650aa04f69dd37371
data/CHANGELOG.md CHANGED
@@ -6,20 +6,13 @@ 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
11
- ### Removed
12
13
 
13
- ## [0.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)
14
+ ### Removed
17
15
 
18
- ## [0.1.0] - 2023-05-22
16
+ ## [1.0.0] - 2022-05-22
19
17
  ### Added
20
- - Initial even release supporting analysis of Ruby >= 1.8
21
- - Configures many linting tools via `standard-rubocop-lts`
22
-
23
- [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v0.1.1...HEAD
24
- [0.1.1]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v0.1.0...v0.1.1
25
- [0.1.0]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/tags/v0.1.0
18
+ - Initial odd release supporting Ruby ~> 1.9
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
- the [code of conduct][🤝conduct].
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,220 +16,304 @@
16
16
  </a>
17
17
  </p>
18
18
 
19
- # 🦾 RuboCop LTS
20
-
21
- ## PROJECT DOCUMENTATION
22
-
23
- * 🌱 [Convention > Configuration][Convention-Over-Configuration]
24
- * 🌱 [Releases][Even-Major-Release]
25
- * 🌱 [How to Upgrade Ruby (1.8 to 3.2)!][How-To-Upgrade-Ruby]
26
- * 👩‍💻 [Org Health][OrgHealth]
27
- * [Installation][Installation]
28
- * 🔧 [Usage][Usage]
29
- * ⚡️ [Contributing][Contributing]
30
- * 🌈 [Contributors][Contributors]
31
- * 📄 [License][License]
32
- * © [Copyright][Copyright]
33
- * 🤝 [Code of Conduct][Code of Conduct]
34
- * 📌 [Versioning][Versioning]
35
-
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-
48
-
49
- ## This README
50
-
51
- * 🌳 [This Branch](#this-branch-)
52
- * ‍💻 [Project Health](#project-health-)
53
- * ✨ [Installation](#installation-)
54
-
55
- ## 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].
56
36
 
57
37
  <!-- FIND VERSION -->
58
- **This README is for the even release of `rubocop-lts` supporting Ruby >= 1.8.**
38
+ **This README is for the odd release of `rubocop-lts` supporting only Ruby 1.9.**
59
39
 
60
- 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
61
42
 
62
- - rubocop
63
- - rubocop-gradual
64
- - rubocop-md
65
- - rubocop-rake
66
- - rubocop-shopify
67
- - rubocop-thread_safety
68
- - standard
69
- - standard-performance (incl. rubocop-performance)
70
- - standard-custom
71
- - standard-rubocop-lts (ruby version-specific rules)
43
+ ## Version Conventions
72
44
 
73
- And optionally, if you are using RSpec:
45
+ ### Odd Major Release
74
46
 
75
- - 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.
76
55
 
77
- And optionally, if you are building a RubyGem:
56
+ #### Implementation
78
57
 
79
- - rubocop-packaging
58
+ Intended for applications and libraries that only lint against a single Ruby version.
80
59
 
81
- 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.
82
61
 
83
- - standard-rails (incl. rubocop-rails)
84
- - 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` |
85
76
 
86
- ## 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: `rubocop-lts` is under active development, and hasn't had any releases yet. The ruby specific versions, e.g. `rubocop-ruby2_7`, are complete already, and you can use them! 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
+ ```
87
172
 
88
- | Gem Name | Version | Downloads | CI | Activity |
89
- |------------------------------|-------------------------------------|----------------------------------------------------------------------|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
90
- | [`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] |
91
- | [`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] |
92
- | [`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] |
93
- | [`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] |
94
- | [`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] |
95
- | [`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] |
96
- | [`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] |
97
- | [`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] |
98
- | [`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] |
99
- | [`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] |
100
- | [`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] |
101
- | [`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] |
102
- | [`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] |
103
- | [`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]
104
174
 
105
- ## Installation ✨
175
+ [what1_8]: https://github.com/rubocop-lts/rubocop-ruby1_9#what-about-ruby-18
106
176
 
107
- Install the gem and add to the application's Gemfile by executing:
177
+ ## 👩‍💻 Project Health
108
178
 
109
- $ 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] |
110
194
 
111
- NOTE: If you are using **Rails** remove the `-r false`,
112
- so the Railtie will load and rake tasks will be loaded automatically.
195
+ ## Installation
113
196
 
114
- If bundler is not being used to manage dependencies, install the gem by executing:
197
+ Without bundler execute:
115
198
 
116
- $ gem install rubocop-lts
199
+ $ gem install
117
200
 
118
- Or add this line to your application's Gemfile:
201
+ Add this line to your application's Gemfile:
119
202
 
120
203
  <!-- FIND VERSION -->
121
204
  ```ruby
122
- gem "rubocop-lts", "~> 0.1", require: false
205
+ gem 'rubocop-lts', '~> 1.0', require: false
123
206
  ```
124
207
 
125
208
  And then execute:
126
209
 
127
210
  $ bundle
128
211
 
129
- ## Usage with RuboCop
212
+ ## 🔧 Usage
213
+
214
+ The following is optional. We'll discuss why you might want to do this after you see what it does.
130
215
 
131
- In your `.rubocop.yml` do the following:
216
+ Add to the top of your project's `.rubocop.yml` configuration file:
132
217
 
133
- 🔥 Delete the following line 🔥
134
218
  ```yaml
135
- inherit_from: .rubocop_todo.yml
219
+ inherit_gem:
220
+ - rubocop-lts.yml
136
221
  ```
137
222
 
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!
223
+ ## Development
141
224
 
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
- ```
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.
165
226
 
166
- Then pick one of the following to add!
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).
167
228
 
168
- ### if Ruby with RSpec
229
+ ### Git Branch Names
169
230
 
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
231
+ #### Naming Scheme
232
+
233
+ ```ruby
234
+ "r{{ ruby major }}_{{ ruby minor }}-{{ parity }}-v{{ gem-version }}"
175
235
  ```
176
236
 
177
- ### if just Ruby (without RSpec)
237
+ ##### Parity
178
238
 
179
- ```yaml
180
- inherit_gem:
181
- rubocop-lts: config/ruby.yml
182
- ```
239
+ Even versions use the token `even` in the branch name.
240
+ Odd versions use the token `odd` in the branch name.
183
241
 
184
- ### if Rails with RSpec
242
+ #### Version - Branch Matrix
185
243
 
186
- ```yaml
187
- inherit_gem:
188
- rubocop-lts: config/rails_rspec.yml
189
- ```
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 |
190
270
 
191
- ### if just Rails (without RSpec)
271
+ > NOTE: For more on how Ruby 1.8 support works, see [above][lts1_8]
192
272
 
193
- ```yaml
194
- inherit_gem:
195
- rubocop-lts: config/rails.yml
196
- ```
273
+ [lts1_8]: https://github.com/rubocop-lts/rubocop-lts#supporting-ruby-18
197
274
 
198
- ### if rubygem with RSpec
275
+ ## ⚡️ Contributing
199
276
 
200
- ```yaml
201
- inherit_gem:
202
- rubocop-lts: config/rubygem_rspec.yml
203
- ```
277
+ See [CONTRIBUTING.md][contributing]
204
278
 
205
- ### if just rubygem (without RSpec)
279
+ ## 🌈 Contributors
206
280
 
207
- ```yaml
208
- inherit_gem:
209
- rubocop-lts: config/rubygem.yml
210
- ```
281
+ [![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-lts)]("https://github.com/rubocop-lts/rubocop-lts/graphs/contributors")
211
282
 
212
- ### Load Rake Tasks
283
+ Made with [contributors-img](https://contrib.rocks).
213
284
 
214
- NOTE: On Rails it is **automatic**, via Railtie, so you can skip this.
285
+ ## 📄 License
215
286
 
216
- In a non-Rails environment add the following to your `Rakefile`:
217
- ```ruby
218
- require "rubocop/lts"
219
- Rubocop::Lts.install_tasks
220
- ```
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].
221
290
 
222
- This will load the `rubocop_gradual` rake task, and alias it as `rubocop`.
291
+ * Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
223
292
 
224
- ### Dependabot Noise Reduction
293
+ [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
225
294
 
226
- Add the following to `.github/dependabot.yml` if you use Github Actions.
295
+ ## 🤝 Code of Conduct
227
296
 
228
- ```yaml
229
- ignore:
230
- - dependency-name: "rubocop-lts"
297
+ Everyone interacting in the Rubocop::Ruby19 project's 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).
298
+
299
+ ## 📌 Versioning
300
+
301
+ This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as
302
+ bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be
303
+ immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new
304
+ major versions.
305
+
306
+ As a result of this policy, you can (and should) specify a dependency on this gem using
307
+ the [Pessimistic Version Constraint][pvc] with two digits of precision.
308
+
309
+ For example:
310
+
311
+ <!-- FIND VERSION -->
312
+ ```ruby
313
+ spec.add_dependency "rubocop-lts", "~> 1.0"
231
314
  ```
232
315
 
316
+
233
317
  <!-- columnar badge #s for Project Health table:
234
318
  ⛳️
235
319
  🖇
@@ -250,6 +334,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
250
334
  [🚎lts-cwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/current.yml/badge.svg
251
335
  [🖐lts-hwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/heads.yml
252
336
  [🖐lts-hwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/heads.yml/badge.svg
337
+ [🧮lts-lwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/legacy.yml
338
+ [🧮lts-lwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/legacy.yml/badge.svg
253
339
  [📗lts-io]: https://github.com/rubocop-lts/rubocop-lts/issues
254
340
  [📗lts-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-lts
255
341
  [🚀lts-ic]: https://github.com/rubocop-lts/rubocop-lts/issues?q=is%3Aissue+is%3Aclosed
@@ -260,23 +346,6 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
260
346
  [👽lts-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-lts
261
347
  [⛳️lts-g]: https://rubygems.org/gems/rubocop-lts
262
348
  [⛳️lts-gh]: https://github.com/rubocop-lts/rubocop-lts
263
- [⛳️18-vi]: http://img.shields.io/gem/v/rubocop-ruby1_8.svg
264
- [🖇️18-dti]: https://img.shields.io/gem/dt/rubocop-ruby1_8.svg
265
- [🏘️18-rti]: https://img.shields.io/gem/rt/rubocop-ruby1_8.svg
266
- [🚎18-cwf]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/current.yml
267
- [🚎18-cwfi]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/current.yml/badge.svg
268
- [🖐18-hwf]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/heads.yml
269
- [🖐18-hwfi]: https://github.com/rubocop-lts/rubocop-ruby1_8/actions/workflows/heads.yml/badge.svg
270
- [📗18-io]: https://github.com/rubocop-lts/rubocop-ruby1_8/issues
271
- [📗18-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby1_8
272
- [🚀18-ic]: https://github.com/rubocop-lts/rubocop-ruby1_8/issues?q=is%3Aissue+is%3Aclosed
273
- [🚀18-ici]: https://img.shields.io/github/issues-closed-raw/rubocop-lts/rubocop-ruby1_8
274
- [💄18-po]: https://github.com/rubocop-lts/rubocop-ruby1_8/pulls
275
- [💄18-poi]: https://img.shields.io/github/issues-pr/rubocop-lts/rubocop-ruby1_8
276
- [👽18-pc]: https://github.com/rubocop-lts/rubocop-ruby1_8/pulls?q=is%3Apr+is%3Aclosed
277
- [👽18-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-ruby1_8
278
- [⛳️18-g]: https://rubygems.org/gems/rubocop-ruby1_8
279
- [⛳️18-gh]: https://github.com/rubocop-lts/rubocop-ruby1_8
280
349
  [⛳️19-vi]: http://img.shields.io/gem/v/rubocop-ruby1_9.svg
281
350
  [🖇️19-dti]: https://img.shields.io/gem/dt/rubocop-ruby1_9.svg
282
351
  [🏘️19-rti]: https://img.shields.io/gem/rt/rubocop-ruby1_9.svg
@@ -284,6 +353,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
284
353
  [🚎19-cwfi]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/current.yml/badge.svg
285
354
  [🖐19-hwf]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/heads.yml
286
355
  [🖐19-hwfi]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/heads.yml/badge.svg
356
+ [🧮19-lwf]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/legacy.yml
357
+ [🧮19-lwfi]: https://github.com/rubocop-lts/rubocop-ruby1_9/actions/workflows/legacy.yml/badge.svg
287
358
  [📗19-io]: https://github.com/rubocop-lts/rubocop-ruby1_9/issues
288
359
  [📗19-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby1_9
289
360
  [🚀19-ic]: https://github.com/rubocop-lts/rubocop-ruby1_9/issues?q=is%3Aissue+is%3Aclosed
@@ -301,6 +372,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
301
372
  [🚎20-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/current.yml/badge.svg
302
373
  [🖐20-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/heads.yml
303
374
  [🖐20-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/heads.yml/badge.svg
375
+ [🧮20-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/legacy.yml
376
+ [🧮20-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_0/actions/workflows/legacy.yml/badge.svg
304
377
  [📗20-io]: https://github.com/rubocop-lts/rubocop-ruby2_0/issues
305
378
  [📗20-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_0
306
379
  [🚀20-ic]: https://github.com/rubocop-lts/rubocop-ruby2_0/issues?q=is%3Aissue+is%3Aclosed
@@ -318,6 +391,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
318
391
  [🚎21-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/current.yml/badge.svg
319
392
  [🖐21-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/heads.yml
320
393
  [🖐21-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/heads.yml/badge.svg
394
+ [🧮21-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/legacy.yml
395
+ [🧮21-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_1/actions/workflows/legacy.yml/badge.svg
321
396
  [📗21-io]: https://github.com/rubocop-lts/rubocop-ruby2_1/issues
322
397
  [📗21-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_1
323
398
  [🚀21-ic]: https://github.com/rubocop-lts/rubocop-ruby2_1/issues?q=is%3Aissue+is%3Aclosed
@@ -335,6 +410,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
335
410
  [🚎22-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/current.yml/badge.svg
336
411
  [🖐22-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/heads.yml
337
412
  [🖐22-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/heads.yml/badge.svg
413
+ [🧮22-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/legacy.yml
414
+ [🧮22-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_2/actions/workflows/legacy.yml/badge.svg
338
415
  [📗22-io]: https://github.com/rubocop-lts/rubocop-ruby2_2/issues
339
416
  [📗22-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_2
340
417
  [🚀22-ic]: https://github.com/rubocop-lts/rubocop-ruby2_2/issues?q=is%3Aissue+is%3Aclosed
@@ -352,6 +429,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
352
429
  [🚎23-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/current.yml/badge.svg
353
430
  [🖐23-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/heads.yml
354
431
  [🖐23-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/heads.yml/badge.svg
432
+ [🧮23-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/legacy.yml
433
+ [🧮23-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_3/actions/workflows/legacy.yml/badge.svg
355
434
  [📗23-io]: https://github.com/rubocop-lts/rubocop-ruby2_3/issues
356
435
  [📗23-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_3
357
436
  [🚀23-ic]: https://github.com/rubocop-lts/rubocop-ruby2_3/issues?q=is%3Aissue+is%3Aclosed
@@ -369,6 +448,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
369
448
  [🚎24-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/current.yml/badge.svg
370
449
  [🖐24-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/heads.yml
371
450
  [🖐24-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/heads.yml/badge.svg
451
+ [🧮24-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/legacy.yml
452
+ [🧮24-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_4/actions/workflows/legacy.yml/badge.svg
372
453
  [📗24-io]: https://github.com/rubocop-lts/rubocop-ruby2_4/issues
373
454
  [📗24-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_4
374
455
  [🚀24-ic]: https://github.com/rubocop-lts/rubocop-ruby2_4/issues?q=is%3Aissue+is%3Aclosed
@@ -386,6 +467,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
386
467
  [🚎25-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/current.yml/badge.svg
387
468
  [🖐25-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/heads.yml
388
469
  [🖐25-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/heads.yml/badge.svg
470
+ [🧮25-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/legacy.yml
471
+ [🧮25-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_5/actions/workflows/legacy.yml/badge.svg
389
472
  [📗25-io]: https://github.com/rubocop-lts/rubocop-ruby2_5/issues
390
473
  [📗25-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_5
391
474
  [🚀25-ic]: https://github.com/rubocop-lts/rubocop-ruby2_5/issues?q=is%3Aissue+is%3Aclosed
@@ -403,6 +486,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
403
486
  [🚎26-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/current.yml/badge.svg
404
487
  [🖐26-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/heads.yml
405
488
  [🖐26-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/heads.yml/badge.svg
489
+ [🧮26-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/legacy.yml
490
+ [🧮26-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/legacy.yml/badge.svg
406
491
  [📗26-io]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues
407
492
  [📗26-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_6
408
493
  [🚀26-ic]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues?q=is%3Aissue+is%3Aclosed
@@ -420,6 +505,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
420
505
  [🚎27-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/current.yml/badge.svg
421
506
  [🖐27-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/heads.yml
422
507
  [🖐27-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/heads.yml/badge.svg
508
+ [🧮27-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/legacy.yml
509
+ [🧮27-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_7/actions/workflows/legacy.yml/badge.svg
423
510
  [📗27-io]: https://github.com/rubocop-lts/rubocop-ruby2_7/issues
424
511
  [📗27-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_7
425
512
  [🚀27-ic]: https://github.com/rubocop-lts/rubocop-ruby2_7/issues?q=is%3Aissue+is%3Aclosed
@@ -437,6 +524,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
437
524
  [🚎30-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/current.yml/badge.svg
438
525
  [🖐30-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml
439
526
  [🖐30-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml/badge.svg
527
+ [🧮30-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml
528
+ [🧮30-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml/badge.svg
440
529
  [📗30-io]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
441
530
  [📗30-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_0
442
531
  [🚀30-ic]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues?q=is%3Aissue+is%3Aclosed
@@ -454,6 +543,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
454
543
  [🚎31-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/current.yml/badge.svg
455
544
  [🖐31-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/heads.yml
456
545
  [🖐31-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/heads.yml/badge.svg
546
+ [🧮31-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/legacy.yml
547
+ [🧮31-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_1/actions/workflows/legacy.yml/badge.svg
457
548
  [📗31-io]: https://github.com/rubocop-lts/rubocop-ruby3_1/issues
458
549
  [📗31-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_1
459
550
  [🚀31-ic]: https://github.com/rubocop-lts/rubocop-ruby3_1/issues?q=is%3Aissue+is%3Aclosed
@@ -471,6 +562,8 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
471
562
  [🚎32-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/current.yml/badge.svg
472
563
  [🖐32-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/heads.yml
473
564
  [🖐32-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/heads.yml/badge.svg
565
+ [🧮32-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/legacy.yml
566
+ [🧮32-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_2/actions/workflows/legacy.yml/badge.svg
474
567
  [📗32-io]: https://github.com/rubocop-lts/rubocop-ruby3_2/issues
475
568
  [📗32-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_2
476
569
  [🚀32-ic]: https://github.com/rubocop-lts/rubocop-ruby3_2/issues?q=is%3Aissue+is%3Aclosed
@@ -482,33 +575,60 @@ Add the following to `.github/dependabot.yml` if you use Github Actions.
482
575
  [⛳️32-g]: https://rubygems.org/gems/rubocop-ruby3_2
483
576
  [⛳️32-gh]: https://github.com/rubocop-lts/rubocop-ruby3_2
484
577
 
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
494
578
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
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
579
+
500
580
  [gh_discussions]: https://github.com/rubocop-lts/rubocop-lts/discussions
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
581
+
582
+ [conduct]: https://github.com/rubocop-lts/rubocop-lts/blob/main/CODE_OF_CONDUCT.md
583
+
584
+ [contributing]: https://github.com/rubocop-lts/rubocop-lts/blob/main/CONTRIBUTING.md
585
+
586
+ [security]: https://github.com/rubocop-lts/rubocop-lts/blob/main/SECURITY.md
587
+
588
+ [license]: https://github.com/rubocop-lts/rubocop-lts/blob/main/LICENSE.txt
589
+
505
590
  [license-ref]: https://opensource.org/licenses/MIT
506
- [license-img]: https://img.shields.io/badge/License-MIT-green.svg
507
- [peterboling]: http://www.peterboling.com
591
+
592
+ [semver]: http://semver.org/
593
+
508
594
  [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
595
+
509
596
  [railsbling]: http://www.railsbling.com
510
- [rubygems]: https://rubygems.org/gems/rubocop-lts
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/
597
+
598
+ [peterboling]: http://www.peterboling.com
599
+
600
+ [aboutme]: https://about.me/peter.boling
601
+
602
+ [angelme]: https://angel.co/peter-boling
603
+
604
+ [coderme]:http://coderwall.com/pboling
605
+
606
+ [followme-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
607
+
514
608
  [tweetme]: http://twitter.com/galtzo
609
+
610
+ [politicme]: https://nationalprogressiveparty.org
611
+
612
+ [documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-lts/main
613
+
614
+ [source]: https://github.com/rubocop-lts/rubocop-lts/
615
+
616
+ [actions]: https://github.com/rubocop-lts/rubocop-lts/actions
617
+
618
+ [issues]: https://github.com/rubocop-lts/rubocop-lts/issues
619
+
620
+ [climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-lts/maintainability
621
+
622
+ [code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-lts
623
+
624
+ [blogpage]: http://www.railsbling.com/tags/rubocop-lts/
625
+
626
+ [rubygems]: https://rubygems.org/gems/rubocop-lts
627
+
628
+ [chat]: https://gitter.im/rubocop-lts/rubocop-lts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
629
+
630
+ [maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
631
+
632
+ [liberapay_donate]: https://liberapay.com/pboling/donate
633
+
634
+ [gh_sponsors]: https://github.com/sponsors/pboling
data/SECURITY.md CHANGED
@@ -2,37 +2,19 @@
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: |
36
18
 
37
19
  ## Reporting a Vulnerability
38
20
 
@@ -3,8 +3,6 @@
3
3
 
4
4
  module Rubocop
5
5
  module Lts
6
- module Version
7
- VERSION = "0.1.1"
8
- end
6
+ VERSION = "1.0.0".freeze
9
7
  end
10
8
  end
data/lib/rubocop/lts.rb CHANGED
@@ -1,22 +1,11 @@
1
1
  # encoding: utf-8
2
2
  # frozen_string_literal: true
3
3
 
4
- # external libs
5
- require "version_gem"
6
- require "rubocop/ruby1_8"
7
-
8
4
  require_relative "lts/version"
9
5
 
10
6
  module Rubocop
11
7
  module Lts
12
8
  class Error < StandardError; end
13
-
14
- module_function def install_tasks
15
- Rubocop::Ruby18.install_tasks
16
- end
9
+ # Your code goes here...
17
10
  end
18
11
  end
19
-
20
- Rubocop::Lts::Version.class_eval do
21
- extend VersionGem::Basic
22
- end
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,14 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ RSpec.configure do |config|
5
+ # Enable flags like --only-failures and --next-failure
6
+ config.example_status_persistence_file_path = ".rspec_status"
7
+
8
+ # Disable RSpec exposing methods globally on `Module` and `main`
9
+ config.disable_monkey_patching!
10
+
11
+ config.expect_with :rspec do |c|
12
+ c.syntax = :expect
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ RSpec.describe Rubocop::Lts do
5
+ it "has a version number" do
6
+ expect(Rubocop::Lts::VERSION).not_to be nil
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ # This gem
5
+ require "rubocop/ruby1_9"
6
+
7
+ # RSpec Configs
8
+ require "config/rspec/rspec_core"
metadata CHANGED
@@ -1,146 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-lts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
- autorequire:
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-30 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2022-05-22 00:00:00.000000000 Z
40
12
  dependencies:
41
13
  - !ruby/object:Gem::Dependency
42
- name: rubocop-ruby1_8
14
+ name: rubocop-ruby1_9
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 1.0.5
48
- - - "<"
49
- - !ruby/object:Gem::Version
50
- version: '2'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 1.0.5
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '2'
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
- - - ">="
17
+ - - "~>"
76
18
  - !ruby/object:Gem::Version
77
19
  version: 1.0.3
78
- - - "<"
79
- - !ruby/object:Gem::Version
80
- version: '3'
81
- - !ruby/object:Gem::Dependency
82
- name: version_gem
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: 1.1.2
88
- - - "<"
89
- - !ruby/object:Gem::Version
90
- version: '3'
91
20
  type: :runtime
92
21
  prerelease: false
93
22
  version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: 1.1.2
98
- - - "<"
99
- - !ruby/object:Gem::Version
100
- version: '3'
101
- - !ruby/object:Gem::Dependency
102
- name: rubocop-packaging
103
- requirement: !ruby/object:Gem::Requirement
104
- requirements:
105
- - - "~>"
106
- - !ruby/object:Gem::Version
107
- version: '0.5'
108
- type: :development
109
- prerelease: false
110
- version_requirements: !ruby/object:Gem::Requirement
111
- requirements:
112
- - - "~>"
113
- - !ruby/object:Gem::Version
114
- version: '0.5'
115
- - !ruby/object:Gem::Dependency
116
- name: rubocop-rspec
117
- requirement: !ruby/object:Gem::Requirement
118
- requirements:
119
- - - "~>"
120
- - !ruby/object:Gem::Version
121
- version: '2.22'
122
- type: :development
123
- prerelease: false
124
- version_requirements: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - "~>"
127
- - !ruby/object:Gem::Version
128
- version: '2.22'
129
- - !ruby/object:Gem::Dependency
130
- name: rspec-block_is_expected
131
- requirement: !ruby/object:Gem::Requirement
132
23
  requirements:
133
24
  - - "~>"
134
25
  - !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'
143
- 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
144
28
  email:
145
29
  - peter.boling@gmail.com
146
30
  executables: []
@@ -153,31 +37,24 @@ files:
153
37
  - LICENSE.txt
154
38
  - README.md
155
39
  - SECURITY.md
156
- - config/base.yml
157
- - config/rails.yml
158
- - config/rails_rspec.yml
159
- - config/rspec.yml
160
- - config/ruby.yml
161
- - config/ruby_rspec.yml
162
- - config/rubygem.yml
163
- - config/rubygem_rspec.yml
164
40
  - lib/rubocop/lts.rb
165
41
  - lib/rubocop/lts/version.rb
166
- - rubocop-lts.yml
167
42
  - sig/rubocop/lts.rbs
168
- homepage: https://gitlab.com/rubocop-lts/rubocop-lts
43
+ - spec/config/rspec/rspec_core.rb
44
+ - spec/rubocop/lts_spec.rb
45
+ - spec/spec_helper.rb
46
+ homepage: https://github.com/rubocop-lts/rubocop-lts
169
47
  licenses:
170
48
  - MIT
171
49
  metadata:
172
- homepage_uri: https://rubocop-lts.gitlab.io/
173
- source_code_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/tree/v0.1.1
174
- changelog_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/blob/v0.1.1/CHANGELOG.md
175
- bug_tracker_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/issues
176
- documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/0.1.1
177
- wiki_uri: https://gitlab.com/rubocop-lts/rubocop-lts/-/wiki
178
- funding_uri: https://liberapay.com/pboling
50
+ homepage_uri: https://github.com/rubocop-lts/rubocop-lts
51
+ source_code_uri: https://github.com/rubocop-lts/rubocop-lts/tree/v1.0.0
52
+ changelog_uri: https://github.com/rubocop-lts/rubocop-lts/blob/v1.0.0/CHANGELOG.md
53
+ bug_tracker_uri: https://github.com/rubocop-lts/rubocop-lts/issues
54
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby1_9/1.0.0
55
+ wiki_uri: https://github.com/rubocop-lts/rubocop-lts/wiki
179
56
  rubygems_mfa_required: 'true'
180
- post_install_message:
57
+ post_install_message:
181
58
  rdoc_options: []
182
59
  require_paths:
183
60
  - lib
@@ -185,15 +62,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
62
  requirements:
186
63
  - - ">="
187
64
  - !ruby/object:Gem::Version
188
- version: '2.7'
65
+ version: 1.9.0
66
+ - - "<"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
189
69
  required_rubygems_version: !ruby/object:Gem::Requirement
190
70
  requirements:
191
71
  - - ">="
192
72
  - !ruby/object:Gem::Version
193
73
  version: '0'
194
74
  requirements: []
195
- rubygems_version: 3.4.13
196
- signing_key:
75
+ rubygems_version: 3.3.14
76
+ signing_key:
197
77
  specification_version: 4
198
- summary: 'Rules for Rubies: Rubocop + Standard + Betterlint + Shopify + Gradual'
199
- test_files: []
78
+ summary: Rubocop LTS - Semantically Versioned
79
+ test_files:
80
+ - spec/spec_helper.rb
81
+ - spec/config/rspec/rspec_core.rb
82
+ - spec/rubocop/lts_spec.rb
checksums.yaml.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- O���0:!��ʃx7���E��ܪf�c����.�3�gP?e*
2
- �i!/�,i��j�.GؗU�Z��1����t-9�A:2�`�P�= �mxW ��J獥o̸��N���
data/config/base.yml DELETED
@@ -1,2 +0,0 @@
1
- AllCops:
2
- DisplayCopNames: true # Display the name of the failing cops
data/config/rails.yml DELETED
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/rails.yml
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/rails_rspec.yml
data/config/rspec.yml DELETED
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/rspec.yml
data/config/ruby.yml DELETED
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/ruby.yml
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/ruby_rspec.yml
data/config/rubygem.yml DELETED
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/rubygem.yml
@@ -1,4 +0,0 @@
1
- inherit_from: ./base.yml
2
-
3
- inherit_gem:
4
- rubocop-ruby1_8: rubocop-lts/rubygem_rspec.yml
data/rubocop-lts.yml DELETED
@@ -1,15 +0,0 @@
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
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file