] > Re: [Python-projects] HTML file output (Logilab.org)

Email Re: [Python-projects] HTML file output

from
subject
Re: [Python-projects] HTML file output
date
2005/04/18 09:38
'lo

On Friday 15 April à 22:01, logilab.abcx@spamgourmet.com wrote:
> Thanks for the first fix. Now another small problem ;)

I'm preparing pylint 1.0, so please hurry to submit bugs and feedback :-)

> I have the following options enabled:

> [REPORTS]
> # Tells wether to display a full report or only the messages
> reports=yes

> # Use HTML as output format instead of text
> html=yes

> # Put messages in a separate file for each module / package specified on the
> # command line instead of printing them on stdout. Reports (if any) will be
> # written in a file name "pylint_global.[txt|html]".
> files-output=yes

> However, I would like if an option was added to write both the messages
> and the report (or just the report) to a separate file for each package.
> A small patch I use is below.

> utils.py line 309
> ==================
> def make_reports(self, stats, old_stats):
>     """render registered reports"""
>     # BEGIN - commented section so that each report is placed in it's
>     #         own file and not in the "pylint_global.*" one
>     #if self.config.files_output:
>     #    filename = 'pylint_global.' + self.reporter.extension
>     #    self.reporter.set_output(open(filename, 'w'))
>     # END
>     sect = Section('Report',
>                    '%s statements analysed.'% (self.stats['statement']))


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 ?

-- 
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