public/manifest-license/ruby
Package manifest declares the license
Implements public/manifest-license for ruby.
| Severity | info |
| Tiers | 1 |
| Stacks | ruby |
| Scope | each |
| Kind | expr |
| Source | library v0.8.0 |
| Selected by | fleetlint-recommended@v0.8.0 |
Requirement
Every gemspec sets spec.license (or spec.licenses) to an SPDX identifier.
Why
Registries, SBOM tools and license checkers read the manifest, not the LICENSE file.
Capability applies when
repo.publicCheck
glob("*.gemspec").all(f, text(f).matches(r'\.licenses?\s*='))Fix
Add spec.license = "<SPDX id>" to the gemspec.
Agent instruction (from public/manifest-license): Set the manifest’s license field to the SPDX identifier matching the LICENSE file; ask if the LICENSE text is not a recognised license.
A finding that names no file points at the first existing file of *.gemspec, else no file.
Sources
- https://spdx.org/licenses/ (spec)
- https://fleetlint.org/baseline/#public-repositories (convention)
- https://guides.rubygems.org/specification-reference/ (spec, license=(o))
- https://fleetlint.org/stacks/#ruby
Generated by fleetlint docs from catalog v0.8.0.