-
da3b3a72
by Felix Lechner
at 2019-07-29T21:15:53Z
Record check relationship in tag description.
A tag that is used in two checks could in the future cause the
issuance of a duplicate. For that reason tags are, and always have
been, expected to be associated with a single check. This commit
records the relationship in a field in the tag description.
The field may hold only one value.
A future commit will remove the reverse relationship, which was a
cumbersome list prone to cause merge conflicts, from the check
description.
Please do not use the same tag in two check. It is not possible to
keep the heuristics in both checks, which are textually so distant,
balanced over time so that they never issue duplicates. Instead,
please create a new tag. The new tag can have a similar name.
Gbp-Dch: ignore
-
f70be387
by Felix Lechner
at 2019-07-29T21:15:53Z
Remove tag relationships from check descriptions.
The relationship between checks and tags is already recorded in the
tag description, where it is less likely to cause merge conflicts.
This commit removes the tag relationships from the check descriptions.
Gbp-Dch: ignore
-
dbc8666a
by Felix Lechner
at 2019-07-29T21:15:53Z
Test script for the fields in separate tag descriptions that also mention checks.
The format of the tag descriptions changed. Adds a test script for the
fields in these files.
Gbp-Dch: ignore
-
a972cc02
by Felix Lechner
at 2019-07-29T21:15:53Z
In Lintian::CheckScript, offer a method to associate a Lintian::Tag::Info structure with a check.
This information was removed from the check descriptions and can no
longer be gleaned from them. To minimize changes to surrounding code,
it is helpful to obtain the related tags from Lintian::CheckScript.
This commit offers a programmatic way to add the information to
Lintian::CheckScript.
Gbp-Dch: ignore
-
4574d538
by Felix Lechner
at 2019-07-29T21:15:53Z
In Lintian::Tag::Info, offer method to load tag description from a path.
This converts the instantiator ->new to work without parameters and
instead offloads the burden of initializing all internal data
structures to another function called ->load, which accepts a file
path to the tag description.
This is part of an effort to collect more functionality related to
tags in the class Lintian::Tag::Info.
Gbp-Dch: ignore
-
0df766b7
by Felix Lechner
at 2019-07-29T21:15:53Z
In Lintian::Profile, load check associations from tag files.
The associations between tags and check were transferred to the tag
descriptions. This commit modifies Lintian::Profile to use them
properly.
Gbp-Dch: ignore
-
ca8c66a5
by Felix Lechner
at 2019-07-29T21:15:54Z
Adjust t/scripts/profiles-coverage.t for new tag layout with check relationships documented in tags.
This test did not work with the new field for tags, which records the
check relationship. There was also some non-standard usage of
TAP-related functions. The test was updated and enhanced.
Gbp-Dch: ignore
-
7e39194c
by Felix Lechner
at 2019-07-29T21:15:54Z
In commands/lintian.pm, enhance error message for better debugging of tag/check code.
Gives more information about a possible null exception. It came in
helpful when debugging a nearby series of commits, in which the check
relationships were documented in the tag descriptions.
Gbp-Dch: ignore