Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpl1+ gpl2+ false detection #2585

Open
tardyp opened this issue Jul 9, 2021 · 2 comments
Open

gpl1+ gpl2+ false detection #2585

tardyp opened this issue Jul 9, 2021 · 2 comments

Comments

@tardyp
Copy link
Contributor

tardyp commented Jul 9, 2021

Description

Some of the gpl1 rules matches very few text and have
probability to match real code.

for example:

src/licensedcode/data/rules/gpl-1.0-plus_50.RULE

only contains 'gpl1+'

On some of my scanned code, I have some variable named i_gpl1, which is incremented in a for loop, so several occurence of

i_gpl1++

scancode matches this as gpl-1.0-plus with a score of 100.

I also have another variable named i_gpl2, which also gets incremented, and the rule

src/licensedcode/data/rules/gpl-2.0-plus_188.RULE will match it as gpl-2.0-plus

@pombredanne
Copy link
Member

This is a good example of bare words detection issues #2403

@pombredanne
Copy link
Member

pombredanne commented Aug 19, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants