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

Bug#498883: Please add support for overridable tags



Package: lintian
Version: 1.24.4
Severity: wishlist
Tags: patch

The attached patch adds support for "overridable" tags.
Any value in the .desc files can be overriden if the lowercase name is in its 
corresponding Overridable field.

Example:

in .desc:
Tag: test-tag
Type: warning
Severity: normal
Certainty: certain
Overridable: severity
Info: foo bar moo

in script:

if ( it is annoying to have it where it is) {
tag 'test-tag', "$file:$.";
} elsif (not so annoying, thereby lintian shouldn't be so pedantic) {
ctag 'test-tag', "$file:$.", (severity => 'minor');
} elsif (this is serious) {
ctag 'test-tag', "$file:$.", (severity => 'serious');
} 

lintian-info isn't very easy to hack to add my idea of displaying that the 
severity, certainty, or experimental is the _default_ value, may give it a 
try tomorrow.

I wanted this feature to be added before the 2.0.0 upload, but Frank did it 
right while I was fixing some bugs :-/.

Let the fun begin.

Cheers,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Attachment: lintian_overridable-tags.mbox
Description: application/mbox

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: