Lint: please add "detected-spdx-license-missmatch" linter
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Begin by finding the existing lint-check entry point and related tests in wolfictl; the issue does not name specific files. Compare a package's detected SPDX license with its declared license, and define completion as warning on mismatches while honoring #nolint overrides.
Written by the indexing model from the issue text.
Description
Description
Please add a new lint check. Use a license detector (for example https://github.com/go-enry/go-license-detector/tree/master) to detect the SPDX license of given package.
Compare it to the declared SPDX license. And raise a warning if they missmatch.
Allow humans to fix the license to match to the detected one. Or override the lint check with #nolint in case of confusing / undetectable licensing.
Real world example on a large code base
$ time license-detector /tmp/gcc-13.2.0
/tmp/gcc-13.2.0
99% GCC-exception-3.1
99% LGPL-2.1-only
99% deprecated_LGPL-2.1
99% LGPL-2.1-or-later
99% deprecated_LGPL-2.1+
98% deprecated_GPL-3.0-with-GCC-exception
97% deprecated_GPL-2.0+
97% GPL-2.0-or-later
97% GPL-2.0-only
97% deprecated_GPL-2.0
real 0m4.400s
user 0m5.240s
sys 0m0.171s
Declared license in the package
$ git grep license gcc.yaml
gcc.yaml: - license: GPL-3.0-or-later
Which is incorrect.
- Dominant language
- Go
- Stars
- 73
- Forks
- 86
- Avg merge
- 7d 7h
- Merged PRs (30d)
- 15
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wolfi-dev/wolfictl
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
enhancement needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
enhancement needs-triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
enhancement needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in wolfi-dev/wolfictl
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100