The following commit has been merged in the master branch:
commit 9b590b2a54670c919a638a336769ae0687b2e72b
Author: Guillem Jover <[email protected]>
Date: Sun Dec 30 03:14:03 2012 +0100
Dpkg::Control::Type: Use strict and warnings
Fixes TestingAndDebugging::RequireUseStrict and
TestingAndDebugging::RequireUseWarnings.
Warned-by: perlcritic
diff --git a/scripts/Dpkg/Control/Types.pm b/scripts/Dpkg/Control/Types.pm
index a1a6590..f743f1d 100644
--- a/scripts/Dpkg/Control/Types.pm
+++ b/scripts/Dpkg/Control/Types.pm
@@ -13,6 +13,9 @@
package Dpkg::Control::Types;
+use strict;
+use warnings;
+
use base qw(Exporter);
our @EXPORT = qw(CTRL_UNKNOWN CTRL_INFO_SRC CTRL_INFO_PKG CTRL_INDEX_SRC
CTRL_INDEX_PKG CTRL_PKG_SRC CTRL_PKG_DEB CTRL_FILE_CHANGES
diff --git a/test/100_critic.t b/test/100_critic.t
index cc6b6d8..dee2226 100644
--- a/test/100_critic.t
+++ b/test/100_critic.t
@@ -63,6 +63,8 @@ my @policies = qw(
Subroutines::ProhibitExplicitReturnUndef
TestingAndDebugging::ProhibitNoStrict
TestingAndDebugging::ProhibitNoWarnings
+ TestingAndDebugging::RequireUseStrict
+ TestingAndDebugging::RequireUseWarnings
ValuesAndExpressions::ProhibitComplexVersion
ValuesAndExpressions::ProhibitLongChainsOfMethodCalls
ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]