Re: Lintian as a static analysis framework

2011-07-13 Thread Niels Thykier
On 2011-07-11 11:53, Stefano Zacchiroli wrote: > On Sun, Jul 10, 2011 at 01:08:23PM +0200, Niels Thykier wrote: >>[...] >> >> I think I was unclear here; my intention for the question was more down >> the lines of how will you access the data (e.g. the root dir)? Do you >> plan on doing all the pr

Re: Lintian as a static analysis framework

2011-07-11 Thread James Vega
On Mon, Jul 11, 2011 at 11:53:51AM +0200, Stefano Zacchiroli wrote: > On Sun, Jul 10, 2011 at 01:08:23PM +0200, Niels Thykier wrote: > > I take it you want a debian/control parser to go with that? :P > > Well, we have plenty of those already, from grep-dctrl to python-debian. > No idea what's the

Re: Lintian as a static analysis framework

2011-07-11 Thread Stefano Zacchiroli
On Sun, Jul 10, 2011 at 01:08:23PM +0200, Niels Thykier wrote: > >>> Then I need an easy way to access all (unpacked) source packages I have, > >>> query their package metadata, find their root directory and run my > >>> analysis tool of choice on the source package. > >> > >> Bulk access or a "giv

Re: Lintian as a static analysis framework

2011-07-10 Thread Niels Thykier
On 2011-07-09 14:36, Stefano Zacchiroli wrote: > On Fri, Jul 08, 2011 at 10:36:07AM +0200, Niels Thykier wrote: >> So basically incrementally pulling packages from a mirror via Sources >> file? I cannot help but think we must do something like that on >> lintian.d.o (especially considering we usual

Re: Lintian as a static analysis framework

2011-07-09 Thread Stefano Zacchiroli
On Fri, Jul 08, 2011 at 10:36:07AM +0200, Niels Thykier wrote: > So basically incrementally pulling packages from a mirror via Sources > file? I cannot help but think we must do something like that on > lintian.d.o (especially considering we usually do incremental runs). Yes, although I'd like to

Re: Lintian as a static analysis framework

2011-07-08 Thread Russ Allbery
Paul Wise writes: > On Fri, Jul 8, 2011 at 12:30 PM, Niels Thykier wrote: >> We could do it like that, though the vendor profiles specification >> actually deliberately did not answer the question of how to add >> third-party checks.  I know some people already do this, so we have made >> Lintian

Re: Lintian as a static analysis framework

2011-07-08 Thread Paul Wise
On Fri, Jul 8, 2011 at 12:30 PM, Niels Thykier wrote: > We could do it like that, though the vendor profiles specification > actually deliberately did not answer the question of how to add > third-party checks.  I know some people already do this, so we have made > Lintian behave sanely to it. >  

Re: Lintian as a static analysis framework

2011-07-08 Thread Niels Thykier
On 2011-07-08 10:39, Paul Wise wrote: > On Fri, Jul 8, 2011 at 9:25 AM, Stefano Zacchiroli wrote: > >> [...] > >> I guess that would clash with the dear old tension among minimizing >> lintian dependencies and being able to do very specific checks. We >> really don't want to have lintian depend o

Re: I18n data from browsable source archive (Was: Lintian as a static analysis framework)

2011-07-08 Thread Paul Wise
On Fri, Jul 8, 2011 at 10:00 AM, Andreas Tille wrote: > Would you consider such i18n analysis as one such thing? I guess adding i18n collectors to lintian could help achieve what you want. Especially if lintian were to start running gettext-lint (and similar) over the collected i18n data. -- b

Re: Lintian as a static analysis framework

2011-07-08 Thread Paul Wise
On Fri, Jul 8, 2011 at 9:25 AM, Stefano Zacchiroli wrote: > I haven't yet chosen the technology for code indexing, but if anyone has > experience with *multi-language* code indexers, I'd be happy to hear > from you. I've looked around a bit, but I've found good technologies > only for specific lan

Re: Lintian as a static analysis framework

2011-07-08 Thread Niels Thykier
On 2011-07-07 18:24, Stefano Zacchiroli wrote: > On Thu, Jul 07, 2011 at 12:00:38PM +0200, Niels Thykier wrote: >> [...] > > To achieve the above two goals, I need to keep in sync a Debian (source) > mirror with a place where I've all sources unpacked in versioned > directories. Additions/removals

I18n data from browsable source archive (Was: Lintian as a static analysis framework)

2011-07-08 Thread Andreas Tille
Hi, On Thu, Jul 07, 2011 at 06:24:57PM +0200, Stefano Zacchiroli wrote: > I don't know the current (internal) APIs you mention, but I feel like > sharing a use case that might benefit from the framework refactoring you > propose. It's a use case I've encountered while setting up two things at > on

Re: Lintian as a static analysis framework

2011-07-08 Thread Stefano Zacchiroli
On Thu, Jul 07, 2011 at 07:26:58PM +0200, Paul Wise wrote: > > - the reborn of a sources.debian.org service (sort of browsable / > >  highlighted/ searchable Debian sources at your fingertips on the web) > > Is there any info about this? Not yet, as I wanted (and still want) to have a prototype t

Re: Lintian as a static analysis framework

2011-07-07 Thread Paul Wise
On Thu, Jul 7, 2011 at 6:24 PM, Stefano Zacchiroli wrote: > - the reborn of a sources.debian.org service (sort of browsable / >  highlighted/ searchable Debian sources at your fingertips on the web) Is there any info about this? Last year Noel was working on such a project also: http://wiki.deb

Re: Lintian as a static analysis framework

2011-07-07 Thread Stefano Zacchiroli
On Thu, Jul 07, 2011 at 12:00:38PM +0200, Niels Thykier wrote: > Yesterday in #debian-qa, I chatted with Paul Wise and the idea came up > that Lintian should be a framework that others could use as a basis for > their own analysis - particularly when these analysis would conflict > with some of the

Lintian as a static analysis framework

2011-07-07 Thread Niels Thykier
Hi Yesterday in #debian-qa, I chatted with Paul Wise and the idea came up that Lintian should be a framework that others could use as a basis for their own analysis - particularly when these analysis would conflict with some of the Lintian design goals (namely we try to be independent of the syste