You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function decorators are not ignored by the similarities checker when the "ignore-signatures" option is enabled.
For me, it makes sense to ignore them as well as parameterized decorators might be applied to many different functions and look almost the same. For example, some frameworks use decorators to make declare API handlers functions like in the following example:
Bug description
Function decorators are not ignored by the similarities checker when the "ignore-signatures" option is enabled.
For me, it makes sense to ignore them as well as parameterized decorators might be applied to many different functions and look almost the same. For example, some frameworks use decorators to make declare API handlers functions like in the following example:
It should be easy to fix it, I am going to open PR, but the main question is is it a bug or it was intentionally implemented this way?
Steps to reproduce
Given multiple files:
a.py
:b.py
:Command used
Pylint output
Expected behavior
duplicate-code
error shouldn't be reported in this case.Pylint version
The text was updated successfully, but these errors were encountered: