On 05 juillet 10:07, Geoff Bache wrote: > Hi all, Hi, > I'd like to do a sweep of my code to just pick up warnings related to > unnecessary imports. > > So I ran pylint -d I,R,C,W -e W0611,W0404 > > using pylint 0.21, which worked. I then generated an rc file so I > wouldn't have to remember > this command line, and the relevant part looked like this: > > [MESSAGES CONTROL] > > # Disable the message, report, category or checker with the given id(s). You > # can either give multiple identifier separated by comma (,) or put this > option > # multiple time. > disable=I,R,C,W > > # Enable the message, report, category or checker with the given id(s). You > can > # either give multiple identifier separated by comma (,) or put this option > # multiple time. > enable=W0611,W0404 > > but now it doesn't work any more, everything is just disabled. I guess > it depends in > which order "enable" and "disable" are handled. > > Is there some other way to do this? It worked in the previous version > when categories > and messages were enabled and disabled separately.
right. I guess we should force loading of 'enable' after 'disable' when reading the rc file... Unfortunatly I've no idea to do this quickly and no time to search how to do it yet. You can still submit a ticket on www.logilab.org/project/pylint though. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
