[Python-projects] pylint reports about common code to refactor

Nicolas Chauvat nicolas.chauvat at logilab.fr
Thu Aug 3 18:57:54 CEST 2006


On Thu, Aug 03, 2006 at 04:49:59PM +0200, Duncan Gibson wrote:

> Is there any reason why similar code within a file is not reported,
> and why similar code within classes appears to be ignored?

pylint.checkers.similar.py:Similar._iter_sims() choses not to compare
a file with itself. you can try to replace [idx+1:] with [idx:] and
see if you get what you want, but IIRC, it becomes much slower.

I see no reason why code within a class would be ignored.

I added an issue to our tracker. If someone solves this, please keep
us updated.

-- 
Nicolas Chauvat

logilab.fr - services en informatique avancée et gestion de connaissances  


More information about the Python-Projects mailing list