[FEATURE] Add comment to identified license if match is not perfect
Is your feature request related to a problem? Please describe.
grayskull will identify licenses by fuzzy match in some cases and then suggest the best result. However, sometimes the fuzzy match scores a bit lower than average because some people modify popular licenses like BSD or MIT and add their own clauses. This kind of change will turn those into a different license altogether, which should be named as LicenseRef-packagename.
Describe the solution you'd like I suggest:
- Adding a comment next to the suggested identifier, saying that its match % was lower than usual
license: MIT # warning! license might have been modified; search match is XX%. - If no clear license was found, generate a
LicenseRef-packagenameidentifier with a comment next to it like# license could not be identified, please review.
Describe alternatives you've considered
Erroring out seems excessive.
Additional context
A recent example I found on a conda-forge submission.
The match will never be perfect, so it will always need to add that comment
Reopening that just because it still needs to add the comment But @ForgottenProgramme already added a warning about it. :)