from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
subject
Re: [Python-projects] HTML file output
date
On Monday 18 April à 11:23, logilab.abcx@spamgourmet.com wrote:2005/04/18 10:34
> On Monday, April 18, 2005 Sylvain Thénault - Sylvain.Thenault@logilab.fr wrote:
> > Hum, I'm not sure about what you want actually. With this patch, reports
> > are written with the messages of the last module analyzed. Reports are
> > done using datas from the whole set of analyzed modules, so that's
> > probably not a really good location. But you make me think about an
> > option that may be interesting: having each report in its own file.
> > That's not what you were thinking about, is it ?
>
> First of all, I don't really understand what's the difference between
> messages and reports. Are messages the stuff printed on the console
> when pylint is running and reports the things that ends up in the
> report?
Yes, messages are the Error, Warning, Convention, Refactor information
displayed as the modules are analyzed. A part of this information is
collected to build (often statistical) reports once everything has been
analyzed.
> Anyway, here's what I want.
>
> I have 3 batch files to lint 3 packages.
>
> pylint-AP.bat => pyliny.py AP
> pylint-px.bat => pyliny.py px
> pylint-Test.bat => pyliny.py Test
>
> I want each operation to dump it's result in a separate HTML file.
> With the patch I've sent you, this works.
>
> The above invocations generate 3 HTML files which I then load in
> Firefox and use highlighting to look quickly for interesting warnings
> (unused import and redefining builtin).
>
> pylint_AP.html
> pylint_px.html
> pylint_Test.html
>
> All the warnings are good, but due to some libraries I use (pywin32)
> and some other things, I get many not so useful warnings (tons of
> "Access to undefined member" since pylint can't see methods from C
> extension objects and "Unused argument"). I can send you a sample
> report if you wish.
>
> >From your report I understand that something bad could happen?
> Everything looks fine, but maybe I'm missing something.
ok, I see the point. What I meant was that using:
$ pylint AP px Test
will write messages for each package in a separate HTML file, and
reports will end in the pylint_Test.html file.
I think the most logical behaviour of the --files-output option is:
* write everything (i.e. messages + reports) in a single file when a
single package is given on the command line
* write messages for each package in a separate file when more than one
package is given and each report in it's own file too (however having
a single file as today make sense too... opinion ?).
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
