codeclimate/codeclimate-duplication

Wrong duplication detection on function overrides?

satanTime opened this issue · 0 comments

Hi everybody,

I met an interesting case. There are several different function overrides which are detected as a duplication, but I don't see a way how to solve them.

The idea is that the 3rd argument specifies the return generic type, every type is different.

https://codeclimate.com/github/ike18t/ng-mocks/lib/common/func.is-mock-of.ts/source#issue-a3a802d6774fc68bd1f39ab8a2b0cfa2

Might you help me to understand how this could be fixed?

Thank you in advance.