pylint-bot / test

0 stars 0 forks source link

Pylint unable to suppress duplicate-code warning across files #190

Closed pylint-bot closed 8 years ago

pylint-bot commented 9 years ago

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


pylint-bot commented 9 years ago

Original comment by Florian Bruhin (BitBucket: The-Compiler, GitHub: @The-Compiler?):


This has nothing to do with astroid and is a duplicate of #214 in pylint to which Claudiu and I already linked you to via IRC and mailinglist...

pylint-bot commented 9 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


Thanks, Florian.