summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-01-03 02:50:51 +0100
committerGuillem Jover <guillem@debian.org>2013-05-08 04:58:08 +0200
commit4bf48cc73459ffdb9c37f948a86f36abdfb2348d (patch)
treea7a42a65c449c557d30d7bfad1af38cff604ba74 /test
parentb2a6feea95db7b4eea1892a2deb989d66d98f08d (diff)
downloaddpkg-4bf48cc73459ffdb9c37f948a86f36abdfb2348d.tar.gz
perl: Unify regex delimiters to //, {} or <>
Fixes RegularExpressions::ProhibitUnusualDelimiters. Warned-by: perlcritic
Diffstat (limited to 'test')
-rw-r--r--test/100_critic.t1
-rw-r--r--test/100_critic/perlcriticrc3
2 files changed, 4 insertions, 0 deletions
diff --git a/test/100_critic.t b/test/100_critic.t
index 898b911da..fda442b7e 100644
--- a/test/100_critic.t
+++ b/test/100_critic.t
@@ -68,6 +68,7 @@ my @policies = qw(
Modules::RequireExplicitPackage
Modules::RequireFilenameMatchesPackage
Objects::ProhibitIndirectSyntax
+ RegularExpressions::ProhibitUnusualDelimiters
RegularExpressions::RequireBracesForMultiline
Subroutines::ProhibitExplicitReturnUndef
Subroutines::ProhibitNestedSubs
diff --git a/test/100_critic/perlcriticrc b/test/100_critic/perlcriticrc
index 8fa73d6f9..9a68f343e 100644
--- a/test/100_critic/perlcriticrc
+++ b/test/100_critic/perlcriticrc
@@ -2,6 +2,9 @@
severity = 1
verbose = %f %l:%c (Severity: %s)\n %P (%s)\n near '%r'\n%d\n
+[RegularExpressions::ProhibitUnusualDelimiters]
+allow_all_brackets = 1
+
#[RegularExpressions::RequireExtendedFormatting]
#minimum_regex_length_to_complain_about = 60