Lint: please add "detected-spdx-license-missmatch" linter #785
Labels
enhancement
New feature or request
needs-triage
applied to all new customer/user issues. Removed after triage occurs.
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
Declared license in the package
Which is incorrect.
The text was updated successfully, but these errors were encountered: