[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#253884: lintian: override matching should be allowed partially too



On Fri, Jun 11, 2004 at 07:32:11PM +0200, Jeroen van Wolffelaar wrote:
> You should be able to also supply a partial error in an override file.
> For extra flexibility, why not accept some kind of wildcards...

I stumbled upon this missing feature last week and would be interested
in finally implementing it. But I'm unsure about the best syntax for
that to not break backwards compatibility.

My current idea would be to only support partial matches if explicetly
requested and only support one wildcard '*' at the beginning and/or the
end of the extra info.

So
tag-name extra-info	===> /^\Qtag-name\E\s+\Qextra-info\E$/
tag-name extra-info*	===> /^\Qtag-name\E\s+\Qextra-info\E.*$/
tag-name *extra-info	===> /^\Qtag-name\E\s+.*?\Qextra-info\E$/
tag-name *extra-info*	===> /^\Qtag-name\E\s+.*?\Qextra-info\E.*$/

Comment welcome.

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Reply to: