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
Originally reported by: Rohit Bhattacharjee (BitBucket: rohitativy, GitHub: @rohitativy?)
Hi,
I have same code in two files in a project, and this is by design, since these are test cases. On running pylint on my project I am being thrown a duplicate-code warning by pylint even though I have disabled the pylint check for duplicate-code in both of my files locally # pylint: disable=duplicate-code .
I can suppress this warning globally by running pylint <foldername> --disable=duplicate-code which I don't want because I really don't want duplicate-code to exist in the project; they can only exist if the user has any specific requirements.
Interestingly, I do have the same issue today. I have two test classes (in two files) that are almost identical in one place, but this is by design; as usual this with tests, I suppose. How can I disable the duplicate-code warning locally?
The issue linked to Bitbucket above is not accessible anymore. -- Please advise.
Originally reported by: Rohit Bhattacharjee (BitBucket: rohitativy, GitHub: @rohitativy?)
Hi,
I have same code in two files in a project, and this is by design, since these are test cases. On running pylint on my project I am being thrown a
duplicate-code
warning by pylint even though I have disabled the pylint check for duplicate-code in both of my files locally# pylint: disable=duplicate-code
.I can suppress this warning globally by running
pylint <foldername> --disable=duplicate-code
which I don't want because I really don't want duplicate-code to exist in the project; they can only exist if the user has any specific requirements.regards
Rohit
The text was updated successfully, but these errors were encountered: