standard-rubocop-lts 2.0.4 → 2.0.5

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: ae7311a66c1b2e153c8b58e441c652d29b2c48fae56c60e4b3fa054fd2d1b347
4
- data.tar.gz: 233d3079f5a73e6b8c95d48be49191c4a982b09be7fb82894bd73f2f696bceec
3
+ metadata.gz: 53033285bf53ab6e80dbfa7cb21bac76160b919460ef3b7ccdc067d04941b710
4
+ data.tar.gz: 1406049ffcd70df874bee3e1c0298f65a9381345917e12e1f3dd21477ea9f6de
5
5
  SHA512:
6
- metadata.gz: 5e60cdc6d199e46d4097be7b38982abe8189f05962f705c8fbc1349878ae7ec754727682cc4a82eb68f9e02b984dca99c9a8bba3aee489920d1c0dc9fa8c7cbc
7
- data.tar.gz: 5611f769a873abe640e6cbc8e444b1b9cfa19080a09f9cf00f5d9a4e1c76e52e75b04525f0f33b23a0d16ffbcb76b7902bfbdf34911b21a2f2147fbfb39fdd59
6
+ metadata.gz: 771d925112e79f198d220f620c6c2684811359cba9d16ce5289c0f7f6c911ad3472303f85df64d1b41af43d66a42b61353178580f5951688aed4897749f7e7fb
7
+ data.tar.gz: 2ef6381045ab355ddcb3db539607fed979f6f56995bb9b7e2e378bef051d4d30ee896f4c846443778e4a45dd6764374c1298157e71c67eed492921494607c429
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,67 +1,127 @@
1
1
  # Changelog
2
+
3
+ [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
+
2
5
  All notable changes to this project will be documented in this file.
3
6
 
4
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+ The format is based on [Keep a Changelog][📗keep-changelog],
8
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
9
+ and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
10
+ Please file a bug if you notice a violation of semantic versioning.
11
+
12
+ [📌semver]: https://semver.org/spec/v2.0.0.html
13
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
14
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
15
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
16
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
17
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
6
18
 
7
19
  ## [Unreleased]
20
+
8
21
  ### Added
22
+
9
23
  ### Changed
10
- ### Fixed
24
+
25
+ ### Deprecated
26
+
11
27
  ### Removed
12
28
 
29
+ ### Fixed
30
+
31
+ ### Security
32
+
33
+ ## [2.0.5] - 2026-06-07
34
+
35
+ - TAG: [v2.0.5][2.0.5t]
36
+ - COVERAGE: 100.00% -- 19/19 lines in 4 files
37
+ - BRANCH COVERAGE: 0.00% -- 0/0 branches in 4 files
38
+ - 71.43% documented
39
+
40
+ ### Fixed
41
+
42
+ - Disabled autocorrection for `Style/RedundantParentheses`, preventing invalid Ruby from grouped `and` / `or` method arguments.
43
+
13
44
  ## [2.0.4] 2026-06-01
45
+
14
46
  ### Added
47
+
15
48
  ### Changed
49
+
16
50
  - Updated dependency floors:
17
51
  - `standard` to `~> 1.54`, `>= 1.54.0`.
18
52
  - `standard-performance` to `~> 1.9`, `>= 1.9.0`.
19
53
  - `version_gem` to `~> 1.1`, `>= 1.1.9`.
20
54
  - Release, lint, and test dependencies to their latest compatible floors.
21
55
  - Corrected gem metadata to declare the Ruby 3.2 runtime floor that has been implicit since the last major release.
56
+
22
57
  ### Fixed
58
+
23
59
  ### Removed
24
60
 
25
61
  ## [2.0.3] 2026-06-01
62
+
26
63
  ### Added
64
+
27
65
  ### Changed
66
+
28
67
  - Required `kettle-soup-cover` v1.1.3 for release specs.
68
+
29
69
  ### Fixed
70
+
30
71
  ### Removed
31
72
 
32
73
  ## [2.0.2] 2026-05-30
74
+
33
75
  ### Added
76
+
34
77
  ### Changed
78
+
35
79
  - Updated release and documentation dependencies.
80
+
36
81
  ### Fixed
82
+
37
83
  ### Removed
84
+
38
85
  - rubocop-shopify as a transitive dependency (removed from all rubocop-rubyN_N gems)
39
86
 
40
87
  ## [2.0.0] 2025-04-17
88
+
41
89
  - COVERAGE: 100.00% -- 18/18 lines in 4 files
42
90
  - BRANCH COVERAGE: 100.00% -- 0/0 branches in 4 files
43
91
  - 100.00% documented
92
+
44
93
  ### Added
94
+
45
95
  - `stone_checksums` v1.0.0 for release checksums
46
96
  - Rules to prevent churn in bin/bundle
47
97
  - Ability to package gem without signing (e.g. for linux distros)
98
+
48
99
  ### Changed
100
+
49
101
  - RuboCop 1.72+ (new plugin system)
50
102
  - Contributor Covenant v2.1
51
103
  - Upgrade to version_gem v1.1.7
104
+
52
105
  ### Fixed
106
+
53
107
  - (Better) Linting Support for Ruby 1.8, 1.9, 2.0
108
+
54
109
  ### Removed
110
+
55
111
  - Runtime Support for Ruby 2.7, 3.0, 3.1
56
112
  - Minimum runtime is Ruby 3.2
57
113
 
58
114
  ## [1.0.10] 2024-03-23
115
+
59
116
  ### Added
117
+
60
118
  - Moved development dependencies back to gemspec
61
119
  - See: https://github.com/rubygems/rubygems/discussions/5065#discussioncomment-7031586
62
120
  - kettle-soup-cover v1.0.2 for Code Coverage (dev dependency)
63
121
  - rspec-stubbed_env v1.0.1 for testing ENV variable-based logic (dev dependency)
122
+
64
123
  ### Changed
124
+
65
125
  - Disable `Rake/MethodDefinitionInTask` Cop
66
126
  - Cop is 66% incorrect, and hasn't been fixed in 2+ years.
67
127
  - See: https://github.com/rubocop/rubocop-rake/issues/42
@@ -84,26 +144,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84
144
  - rubocop-md v1.2.2 (dev dependency)
85
145
  - rubocop-rspec 2.27.1 (dev dependency)
86
146
  - rubocop-shopify 2.15.1 (dev dependency)
147
+
87
148
  ### Fixed
149
+
88
150
  - AllCops/TargetRubyVersion is now set according to:
89
151
  - `rubocop-lts` version, or
90
152
  - `rubocop-ruby*_*` version
91
153
 
92
154
  ## [1.0.9] 2023-09-20
155
+
93
156
  ### Changed
157
+
94
158
  - standard v1.31.1
95
159
  - standard-performance v1.2
96
160
  - simplecov-rcov dev dependency back to mainline release 0.3.3
161
+
97
162
  ### Fixed
163
+
98
164
  - `Gemspec/DevelopmentDependencies` Cop changed to "gemspec"
99
165
  - See: https://github.com/rubygems/rubygems/discussions/5065#discussioncomment-7031586
100
166
 
101
167
  ## [1.0.8] 2023-07-07
168
+
102
169
  ### Fixed
170
+
103
171
  - compatibility with changes from standard v1.30.1
104
172
 
105
173
  ## [1.0.7] 2023-06-08
174
+
106
175
  ### Changed
176
+
107
177
  - follow best practices for gemspec
108
178
  - put all dev dependencies in Gemfile
109
179
  - See: https://github.com/rubygems/rubygems/discussions/5065
@@ -111,60 +181,93 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
111
181
  - improve documentation
112
182
 
113
183
  ## [1.0.6] 2023-06-03
184
+
114
185
  ### Fixed
186
+
115
187
  - ship internal configs with gem
116
188
 
117
189
  ## [1.0.5] 2023-06-03
190
+
118
191
  ### Fixed
192
+
119
193
  - require deps for configs 1.9 - 3.3
120
194
 
121
195
  ## [1.0.4] 2023-06-03
196
+
122
197
  ### Fixed
198
+
123
199
  - rubocop-shopify > standard gem family of rules
124
200
  - v1.0.0 intended for rubocop-shopify to override standard's rules, now it actually does
125
201
  - override mechanism in rubocop.yml config is counter-intuitive :(
126
202
  - Stop doubly loading style libs and configs with more careful config structure
203
+
127
204
  ### Changed
205
+
128
206
  - disable several rubocop-performance cops that are bad cops
129
207
 
130
208
  ## [1.0.3] 2023-05-29
209
+
131
210
  ### Added
211
+
132
212
  - Gem releases are now signed!
213
+
133
214
  ### Fixed
215
+
134
216
  - URIs in gemspec (now point to GitLab)
135
217
 
136
218
  ## [1.0.2] 2023-05-29
219
+
137
220
  ### Added
221
+
138
222
  - `version_gem` for library version introspection
223
+
139
224
  ### Changed
225
+
140
226
  - Set Style/SymbolArray to brackets for Ruby < 2.0 compat
141
227
  - Previously only set for Ruby 1.8
142
228
  - Set Style/WordArray to brackets for Ruby < 2.0 compat
143
229
  - Previously only set for Ruby 1.8
144
230
  - Disable Style/PercentLiteralDelimiters for Ruby < 2.0 compat
145
231
  - `Standard::Rubocop::Lts::VERSION` refactored to `Standard::Rubocop::Lts::Version::VERSION`
232
+
146
233
  ### Fixed
234
+
147
235
  - Removed obsolete loading of `standard-custom`'s now defunct `config/ruby-2.2.yml`
148
236
  - See: https://github.com/standardrb/standard-custom/issues/2
237
+
149
238
  ### Removed
239
+
150
240
  - Duplicated lines from `README.md`
151
241
  - Circular dependency in gemspec (on `standard-rubocop-lts`, which is this gem)
152
242
 
153
243
  ## [1.0.2] 2023-05-29
244
+
154
245
  ### Changed
246
+
155
247
  - Update to standard 1.28.4
156
248
 
157
249
  ## [1.0.1] 2023-04-16
250
+
158
251
  ### Fixed
252
+
159
253
  - config/*.yml rubocop configs were not shipped with v1.0.0
254
+
160
255
  ### Changed
256
+
161
257
  - Minimum Ruby Version is 2.7
162
258
 
163
259
  ## [1.0.0] 2023-04-16 [YANKED]
260
+
164
261
  ### Added
262
+
165
263
  - Initial release
166
264
 
167
- [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.4...HEAD
265
+ [Unreleased]: https://github.com/rubocop-lts/standard-rubocop-lts/compare/v2.0.5...HEAD
266
+ [2.0.5]: https://github.com/rubocop-lts/standard-rubocop-lts/compare/v2.0.4...v2.0.5
267
+ [2.0.5t]: https://github.com/rubocop-lts/standard-rubocop-lts/releases/tag/v2.0.5
268
+ [2.0.4]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.3...v2.0.4
269
+ [2.0.3]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.2...v2.0.3
270
+ [2.0.2]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.0...v2.0.2
168
271
  [1.0.11]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.10...v1.0.11
169
272
  [1.0.10]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.9...v1.0.10
170
273
  [1.0.9]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.8...v1.0.9
@@ -176,7 +279,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
176
279
  [1.0.3]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.2...v1.0.3
177
280
  [1.0.2]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.1...v1.0.2
178
281
  [1.0.1]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.0...v1.0.1
179
- [1.0.0]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/0c0f82c0eeda184afb5c2c7a3d6b43c10f2d4c1c...v1.0.0
180
- [2.0.3]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.2...v2.0.3
181
- [2.0.2]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.0...v2.0.2
182
- [2.0.4]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v2.0.3...v2.0.4
282
+ [1.0.0]: https://github.com/rubocop-lts/standard-rubocop-lts/compare/0c0f82c0eeda184afb5c2c7a3d6b43c10f2d4c1c...v1.0.0
data/CITATION.cff ADDED
@@ -0,0 +1,20 @@
1
+ cff-version: 1.2.0
2
+ title: "standard-rubocop-lts"
3
+ message: >-
4
+ If you use this work and you want to cite it,
5
+ then you can use the metadata from this file.
6
+ type: software
7
+ authors:
8
+ - given-names: "Peter H."
9
+ family-names: "Boling"
10
+ email: "floss@glatzo.com"
11
+ affiliation: "galtzo.com"
12
+ orcid: 'https://orcid.org/0009-0008-8519-441X'
13
+ identifiers:
14
+ - type: url
15
+ value: 'https://github.com/rubocop-lts/standard-rubocop-lts'
16
+ description: "standard-rubocop-lts"
17
+ repository-code: 'https://github.com/rubocop-lts/standard-rubocop-lts'
18
+ abstract: >-
19
+ standard-rubocop-lts
20
+ license: See license file
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # Contributor Covenant Code of Conduct
3
2
 
4
3
  ## Our Pledge
@@ -61,7 +60,7 @@ representative at an online or offline event.
61
60
 
62
61
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
62
  reported to the community leaders responsible for enforcement at
64
- [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact].
63
+ [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
65
64
  All complaints will be reviewed and investigated promptly and fairly.
66
65
 
67
66
  All community leaders are obligated to respect the privacy and security of the
@@ -131,5 +130,5 @@ For answers to common questions about this code of conduct, see the FAQ at
131
130
  [Mozilla CoC]: https://github.com/mozilla/diversity
132
131
  [FAQ]: https://www.contributor-covenant.org/faq
133
132
  [translations]: https://www.contributor-covenant.org/translations
134
- [🚂bdfl-contact]: http://www.railsbling.com/contact
135
- [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
133
+ [🚂maint-contact]: http://www.railsbling.com/contact
134
+ [🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
data/CONTRIBUTING.md CHANGED
@@ -1,60 +1,195 @@
1
1
  # Contributing
2
2
 
3
- Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/rubocop-lts/standard-rubocop-lts][🚎src-main]
4
- . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
3
+ Bug reports and pull requests are welcome on [CodeBerg][📜src-cb], [GitLab][📜src-gl], or [GitHub][📜src-gh].
4
+ This project should be a safe, welcoming space for collaboration, so contributors agree 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.
8
- Once you're happy with it send a pull request.
7
+ To submit a patch, please fork the project, create a patch with tests, and send a pull request.
9
8
 
10
- We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
9
+ Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] if you make changes.
11
10
 
12
- ## You can help!
11
+ ## Developer Certificate of Origin
13
12
 
14
- Take a look at the `reek` list which is the file called `REEK` and find something to improve.
13
+ In order to protect users of this project, we require all contributors to comply with the
14
+ [Developer Certificate of Origin](https://developercertificate.org/).
15
+ This ensures that all contributions are properly licensed and attributed.
15
16
 
16
- Simply follow these instructions:
17
+ ## Help out!
17
18
 
18
- 1. Fork the repository
19
- 2. Create your feature branch (`git checkout -b my-new-feature`)
20
- 3. Make some fixes.
21
- 4. Commit your changes (`git commit -am 'Added some feature'`)
22
- 5. Push to the branch (`git push origin my-new-feature`)
23
- 6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
24
- 7. Create new Pull Request.
19
+ Take a look at the open issues and pull requests, or use the gem and find something to improve.
25
20
 
26
- ## The Reek List
21
+ Follow these instructions:
27
22
 
28
- Take a look at the `reek` list which is the file called `REEK` and find something to improve.
23
+ 1. Join the Discord: [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite]
24
+ 2. Fork the repository
25
+ 3. Create your feature branch (`git checkout -b my-new-feature`)
26
+ 4. Make some fixes.
27
+ 5. Commit your changes (`git commit -am 'Added some feature'`)
28
+ 6. Push to the branch (`git push origin my-new-feature`)
29
+ 7. Make sure to add tests for it. This is important, so it doesn't break in a future release.
30
+ 8. Create new Pull Request.
31
+ 9. Announce it in the channel for this org in the [Discord][✉️discord-invite]!
29
32
 
30
- To refresh the `reek` list:
33
+ ## Executables vs Rake tasks
31
34
 
32
- ```bash
33
- bundle exec reek > REEK
35
+ Executables shipped by dependencies, such as kettle-dev, and stone_checksums, are available
36
+ after running `bin/setup`. These include:
37
+
38
+ - gem_checksums
39
+ - kettle-changelog
40
+ - kettle-commit-msg
41
+ - kettle-dev-setup
42
+ - kettle-dvcs
43
+ - kettle-pre-release
44
+ - kettle-readme-backers
45
+ - kettle-release
46
+
47
+ There are many Rake tasks available as well. You can see them by running:
48
+
49
+ ```shell
50
+ bin/rake -T
51
+ ```
52
+
53
+ ## Code quality checks
54
+
55
+ Run the Reek task when you want a smell check that fails on current findings:
56
+
57
+ ```shell
58
+ bin/rake reek
59
+ ```
60
+
61
+ Refresh the checked-in `REEK` backlog through the rake task, not by redirecting
62
+ the raw `reek` executable output. The rake task uses the project bundle and
63
+ avoids stale generated binstubs shadowing the Reek gem executable:
64
+
65
+ ```shell
66
+ bin/rake reek:update
67
+ ```
68
+
69
+ ## Environment Variables for Local Development
70
+
71
+ Below are the primary environment variables recognized by stone_checksums (and its integrated tools). Unless otherwise noted, set boolean values to the string "true" to enable.
72
+
73
+ General/runtime
74
+ - DEBUG: Enable extra internal logging for this library (default: false)
75
+ - REQUIRE_BENCH: Enable `require_bench` to profile requires (default: false)
76
+ - CI: When set to true, adjusts default rake tasks toward CI behavior
77
+
78
+ Coverage (kettle-soup-cover / SimpleCov)
79
+ - K_SOUP_COV_DO: Enable coverage collection (default: true in `mise.toml`)
80
+ - K_SOUP_COV_FORMATTERS: Comma-separated list of formatters (html, xml, rcov, lcov, json, tty)
81
+ - K_SOUP_COV_MIN_LINE: Minimum line coverage threshold (integer, e.g., 100)
82
+ - K_SOUP_COV_MIN_BRANCH: Minimum branch coverage threshold (integer, e.g., 100)
83
+ - K_SOUP_COV_MIN_HARD: Fail the run if thresholds are not met (true/false)
84
+ - K_SOUP_COV_MULTI_FORMATTERS: Enable multiple formatters at once (true/false)
85
+ - K_SOUP_COV_OPEN_BIN: Path to browser opener for HTML (empty disables auto-open)
86
+ - MAX_ROWS: Limit console output rows for simplecov-console (e.g., 1)
87
+ Tip: When running a single spec file locally, you may want `K_SOUP_COV_MIN_HARD=false` to avoid failing thresholds for a partial run.
88
+
89
+ GitHub API and CI helpers
90
+ - GITHUB_TOKEN or GH_TOKEN: Token used by `ci:act` and release workflow checks to query GitHub Actions status at higher rate limits
91
+
92
+ Releasing and signing
93
+ - SKIP_GEM_SIGNING: If set, skip gem signing during build/release
94
+ - GEM_CERT_USER: Username for selecting your public cert in `certs/<USER>.pem` (defaults to $USER)
95
+ - SOURCE_DATE_EPOCH: Reproducible build timestamp.
96
+ - `kettle-release` will set this automatically for the session.
97
+ - Not needed on bundler >= 2.7.0, as reproducible builds have become the default.
98
+
99
+ Git hooks and commit message helpers (exe/kettle-commit-msg)
100
+ - GIT_HOOK_BRANCH_VALIDATE: Branch name validation mode (e.g., `jira`) or `false` to disable
101
+ - GIT_HOOK_FOOTER_APPEND: Append a footer to commit messages when goalie allows (true/false)
102
+ - GIT_HOOK_FOOTER_SENTINEL: Required when footer append is enabled — a unique first-line sentinel to prevent duplicates
103
+ - GIT_HOOK_FOOTER_APPEND_DEBUG: Extra debug output in the footer template (true/false)
104
+
105
+ Git diff driver setup
106
+ - Local setup writes repository `.gitattributes` entries and local Git `diff.smorg-*` command config so this checkout uses StructuredMerge semantic diffs.
107
+ - Global setup registers `diff.smorg-*` commands once in the user Git config; use it when you work across several StructuredMerge-enabled repositories.
108
+ - Include-file setup writes `.git/smorg/config` and includes it from local Git config, keeping command registrations out of the repository files.
109
+ - Git hosting forges generally ignore external diff drivers, so pull request views may still show raw textual diffs even when local `git diff` uses semantic drivers.
110
+
111
+ ```console
112
+ K_JEM_TEMPLATING=true bundle exec kettle-jem install
113
+ ```
114
+
115
+ Troubleshooting Git diffs
116
+ - Use `git diff --no-ext-diff` to compare against Git's built-in diff output.
117
+ - Use `git diff --no-textconv` when a textconv projection obscures the raw file bytes you need to inspect.
118
+ - If Git reports a missing `smorg-*` executable, rerun `bundle install` and the setup command above, then check `git config --local --get-regexp '^diff\.smorg-'`.
119
+ - To remove managed local entries, run `K_JEM_TEMPLATING=true bundle exec kettle-jem install --undo`; remove global command registrations with `git config --global --unset-all diff.smorg-ruby.command`.
120
+
121
+ For a quick starting point, this repository’s `mise.toml` defines the shared defaults, and `.env.local` can override them locally. Copy `.env.local.example` to `.env.local`, use `KEY=value` lines, and either activate `mise` in your shell or run commands through `mise exec -C /path/to/project -- ...`.
122
+
123
+ ## Appraisals
124
+
125
+ From time to time the [appraisal2][🚎appraisal2] gemfiles in `gemfiles/` will need to be updated.
126
+ Generated appraisal and CI workflow floors are controlled by `ruby.test_minimum`
127
+ in `.structuredmerge/kettle-jem.yml`; this project was templated with `ruby.test_minimum: 3.2.0`.
128
+ That value describes the lowest Ruby version expected to run the test/development
129
+ toolchain, and it may be higher than the gemspec runtime floor.
130
+
131
+ They are created and updated with the commands:
132
+
133
+ ```console
134
+ bin/rake appraisal:update
34
135
  ```
35
136
 
137
+ If you need to reset all gemfiles/*.gemfile.lock files:
138
+
139
+ ```console
140
+ bin/rake appraisal:reset
141
+ ```
142
+
143
+ When adding an appraisal to CI, check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
144
+
36
145
  ## Run Tests
37
146
 
38
- To run all tests
147
+ Run tests via `kettle-test` (provided by `kettle-test`). It runs RSpec, writes the full log to
148
+ `tmp/kettle-test/rspec-TIMESTAMP.log`, and prints a compact highlight block with timing, seed,
149
+ pass/fail count, failing example list, and SimpleCov coverage percentages.
150
+
151
+ ```console
152
+ bundle exec kettle-test
153
+ ```
154
+
155
+ For targeted runs, disable the hard coverage threshold to avoid false failures:
39
156
 
40
- ```bash
41
- bundle exec rake test
157
+ ```console
158
+ K_SOUP_COV_MIN_HARD=false bundle exec kettle-test spec/path/to/spec.rb
42
159
  ```
43
160
 
161
+ ### Spec organization (required)
162
+
163
+ - One spec file per class/module. For each class or module under `lib/`, keep all of its unit tests in a single spec file under `spec/` that mirrors the path and file name exactly: `lib/standard/rubocop/lts/my_class.rb` -> `spec/standard/rubocop/lts/my_class_spec.rb`.
164
+ - Exception: Integration specs that intentionally span multiple classes. Place these under `spec/integration/` (or a clearly named integration folder), and do not directly mirror a single class. Name them after the scenario, not a class.
165
+
44
166
  ## Lint It
45
167
 
46
168
  Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
47
169
 
48
- ```bash
170
+ ```console
49
171
  bundle exec rake
50
172
  ```
51
173
 
52
174
  Or just run the linter.
53
175
 
54
- ```bash
176
+ ```console
55
177
  bundle exec rake rubocop_gradual:autocorrect
56
178
  ```
57
179
 
180
+ For more detailed information about using RuboCop in this project, please see the [RUBOCOP.md](RUBOCOP.md) guide. This project uses `rubocop_gradual` instead of vanilla RuboCop, which requires specific commands for checking violations.
181
+
182
+ ### Important: Do not add inline RuboCop disables
183
+
184
+ Never add `# rubocop:disable ...` / `# rubocop:enable ...` comments to code or specs (except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). Instead:
185
+
186
+ - Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
187
+ - When a violation is temporary, and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
188
+ - `bundle exec rake rubocop_gradual:autocorrect` (preferred)
189
+ - `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
190
+
191
+ As a general rule, fix style issues rather than ignoring them. For example, our specs should follow RSpec conventions like using `described_class` for the class under test.
192
+
58
193
  ## Contributors
59
194
 
60
195
  Your picture could be here!
@@ -69,49 +204,69 @@ Also see GitLab Contributors: [https://gitlab.com/rubocop-lts/standard-rubocop-l
69
204
 
70
205
  ### One-time, Per-maintainer, Setup
71
206
 
72
- **IMPORTANT**: If you want to sign the build you create,
73
- your public key for signing gems will need to be picked up by the line in the
207
+ **IMPORTANT**: To sign a build,
208
+ a public key for signing gems will need to be picked up by the line in the
74
209
  `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
75
- All releases to RubyGems.org will be signed.
210
+ All releases are signed releases.
76
211
  See: [RubyGems Security Guide][🔒️rubygems-security-guide]
77
212
 
78
- NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
213
+ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in the environment.
79
214
 
80
215
  ### To release a new version:
81
216
 
82
- 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
217
+ #### Automated process
218
+
219
+ 1. Update version.rb to contain the correct version-to-be-released.
220
+ 2. Run `bundle exec kettle-changelog`.
221
+ 3. Run `bundle exec kettle-release`.
222
+ 4. Stay awake and monitor the release process for any errors, and answer any prompts.
223
+
224
+ #### Manual process
225
+
226
+ 1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
83
227
  2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
84
228
  3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
85
- 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
86
- 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
87
- - NOTE: Remember to [check the build][🧪build]!
88
- 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
89
- 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
90
- 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
91
- 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
229
+ 4. Run `bin/rake yard` to regenerate the docs site using the canonical docs task
230
+ 5. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
231
+ 6. Run `git push` to trigger the final CI pipeline before release, and merge PRs
232
+ - NOTE: Remember to [check the build][🧪build].
233
+ 7. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
234
+ 8. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
235
+ 9. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
236
+ 10. Optional for older Bundler (< 2.7.0): Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use the same timestamp and generate the same checksums
237
+ - If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
92
238
  - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
93
239
  - If the echo above has no output, then it didn't work.
94
- - Note that you'll need the `zsh/datetime` module, if running `zsh`.
240
+ - Note: `zsh/datetime` module is needed, if running `zsh`.
95
241
  - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
96
- 10. Run `bundle exec rake build`
97
- 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
242
+ 11. Run `bundle exec rake build`
243
+ 12. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
98
244
  to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
99
245
  [gem][💎stone_checksums].
100
- - Checksums will be committed automatically by the script, but not pushed
101
- 12. Run `bundle exec rake release` which will create a git tag for the version,
102
- push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
246
+ - The script automatically commits but does not push the checksums
247
+ 13. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
248
+ - `sha256sum pkg/<gem name>-<version>.gem`
249
+ 14. Run `bundle exec rake release` which will create a git tag for the version,
250
+ push git commits and tags, and push the `.gem` file to the gem host configured in the gemspec.
103
251
 
104
- [🚎src-main]: https://gitlab.com/rubocop-lts/standard-rubocop-lts
252
+ [📜src-gl]: https://gitlab.com/rubocop-lts/standard-rubocop-lts
253
+ [📜src-cb]: https://codeberg.org/rubocop-lts/standard-rubocop-lts
254
+ [📜src-gh]: https://github.com/rubocop-lts/standard-rubocop-lts
105
255
  [🧪build]: https://github.com/rubocop-lts/standard-rubocop-lts/actions
106
- [🤝conduct]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/blob/main/CODE_OF_CONDUCT.md
256
+ [🤝conduct]: https://github.com/rubocop-lts/standard-rubocop-lts/blob/main/CODE_OF_CONDUCT.md
107
257
  [🖐contrib-rocks]: https://contrib.rocks
108
258
  [🖐contributors]: https://github.com/rubocop-lts/standard-rubocop-lts/graphs/contributors
109
259
  [🚎contributors-gl]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/graphs/main
110
260
  [🖐contributors-img]: https://contrib.rocks/image?repo=rubocop-lts/standard-rubocop-lts
111
- [💎rubygems]: https://rubygems.org
261
+ [💎gem-coop]: https://gem.coop
112
262
  [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
113
263
  [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
114
264
  [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
115
- [💎stone_checksums]: https://github.com/pboling/stone_checksums
265
+ [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
116
266
  [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
117
267
  [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
268
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
269
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
270
+ [🚎appraisal2]: https://github.com/appraisal-rb/appraisal2
271
+ [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
272
+ [✉️discord-invite]: https://discord.gg/3qme4XHNKN