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

Wrong reference to duplication error #358

Open
f-moya opened this issue Feb 5, 2021 · 0 comments
Open

Wrong reference to duplication error #358

f-moya opened this issue Feb 5, 2021 · 0 comments

Comments

@f-moya
Copy link
Contributor

f-moya commented Feb 5, 2021

Reported by a user and recently confirmed, there are cases where the engine gives a wrong reference to a duplication error. It's not a false positive, but the referenced lines are not the ones that are causing the duplication error.

It indicates the error like following
Screen Shot 2021-02-05 at 11 07 25

but the real duplication it's in the declared functions. If you remove the similarities between the functions the duplication does not pop up any warning.

Files to reproduce the problem.
wrong-duplication-reference.zip

With the following files it possible to see how there is no warning the the functions are not similar. Therefore the reference to the namespace section where the duplication was supposed to be was wrong, but there was a duplication error.
wrong-duplication-reference.zip

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

No branches or pull requests

1 participant