This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=4619e220fd938236832e516db9fd302058405253 commit 4619e220fd938236832e516db9fd302058405253 Author: Guillem Jover <[email protected]> AuthorDate: Fri Jan 23 01:19:39 2026 +0100 test: Add known exception sources for ProhibitCaptureWithoutTest This perlcritic tests can be told what other code can generated exceptions or terminate the program. Warned-by: perlcritic --- t/critic/perlcriticrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/critic/perlcriticrc b/t/critic/perlcriticrc index 517289bba..89385eb84 100644 --- a/t/critic/perlcriticrc +++ b/t/critic/perlcriticrc @@ -19,6 +19,9 @@ only_in_void_context = 1 # Allow set(), which is the common name for a setter. forbid = abstract bases close contract last left no record right second +[RegularExpressions::ProhibitCaptureWithoutTest] +exception_source = error syserr usageerr + [RegularExpressions::ProhibitUnusualDelimiters] allow_all_brackets = 1 -- Dpkg.Org's dpkg

