Fix license metadata, link rot, and Rubocop warnings#1335
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes small cleanup fixes across license metadata files and Ruby tooling to reduce lint warnings and address link rot in license notes, improving the reliability and consistency of the repository’s license data and scripts.
Changes:
- Update several license metadata entries (zlib whitespace, BSD-4-Clause “using” example, OSL-3.0 note link).
- Refactor
script/check-approvalto remove globalTrueClass/FalseClassmonkey-patching in favor of ayes_nohelper. - Simplify SPDX list hashing in
spec/spec_helper.rbusingArray#to_h.
Show a summary per file
| File | Description |
|---|---|
spec/spec_helper.rb |
Simplifies SPDX license list conversion to a hash (to_h) to satisfy Rubocop/style. |
script/check-approval |
Replaces boolean to_s monkey-patches with a yes_no formatter for table output. |
_licenses/zlib.txt |
Fixes an extra whitespace in the zlib license text. |
_licenses/osl-3.0.txt |
Replaces a dead link with a Wayback Machine snapshot link. |
_licenses/bsd-4-clause.txt |
Updates the “using” example list to reflect upstream license relocation. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/5 changed files
- Comments generated: 1
This reverts commit bd3f070.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A handful of small fixes and cleanups:
warranty. In→warranty. In)TrueClass#to_s/FalseClass#to_swith ayes_nohelper (Rubocop)Array#to_hinstead ofeach_with_object(Rubocop)Based on work from #1333.