Also fix the anchoring of regular expressions returned by
Regexp::Wildcards. The test showed that it wasn't implemented as
expected (i.e. as before Text::Glob was used). It should do just
substring matches but match the whole line (if patterns are present).
This is basically meant as a test case for #1003353 because writing a
test that tests if lintian overrides actually match seems to be
impossible with the current way Lintian's test suite works.
The weird indentation in the test script is (C) by perltidy. O.o
Replace unfitting Text::Glob with more flexible Regexp::Wildcards
Write a match_glob() function which emulates Text::Glob's match_glob()
preconfigured for Lintian's needs, put it into Lintian::Utils and
allow to export it from there.
The mentioned preconfiguration for just using the "Jokers" set of
Regexp::Wildcards fixes the issues with brackets in overrides which
Lintian had since the introduction of Text::Glob in commit
139009d5a54225ebff4509ec37b979cb898c17fe.
Closes: #1003353
This also allows us to remove one item from the exception list for
Perl::Critic's Variables::ProhibitPackageVars policy as we no more
need to configure Text::Glob every time (!) when we call match_glob().