[libcgi-test-perl] 01/06: Add use warnings; to all files where it was not already enabled

Axel Beckert abe at deuxchevaux.org
Mon Jan 11 00:38:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to annotated tag 1.002
in repository libcgi-test-perl.

commit a9becc000acf05a1c496988ad25764b26261334f
Author: Hunter McMillen <mcmillhj at gmail.com>
Date:   Sun Mar 1 17:04:45 2015 -0500

    Add use warnings; to all files where it was not already enabled
    
    The kwalitee score(http://cpants.cpanauthors.org/dist/CGI-Test) for this distribution is being affected by not having warnings enabled. This patch enables warnings where they were not previously enabled. All tests still pass with warnings enabled.
---
 lib/CGI/Test/Form.pm                         | 1 +
 lib/CGI/Test/Form/Group.pm                   | 1 +
 lib/CGI/Test/Form/Widget.pm                  | 1 +
 lib/CGI/Test/Form/Widget/Box.pm              | 1 +
 lib/CGI/Test/Form/Widget/Box/Check.pm        | 1 +
 lib/CGI/Test/Form/Widget/Box/Radio.pm        | 1 +
 lib/CGI/Test/Form/Widget/Button.pm           | 1 +
 lib/CGI/Test/Form/Widget/Button/Image.pm     | 1 +
 lib/CGI/Test/Form/Widget/Button/Plain.pm     | 1 +
 lib/CGI/Test/Form/Widget/Button/Reset.pm     | 1 +
 lib/CGI/Test/Form/Widget/Button/Submit.pm    | 1 +
 lib/CGI/Test/Form/Widget/Hidden.pm           | 1 +
 lib/CGI/Test/Form/Widget/Input.pm            | 1 +
 lib/CGI/Test/Form/Widget/Input/File.pm       | 1 +
 lib/CGI/Test/Form/Widget/Input/Password.pm   | 1 +
 lib/CGI/Test/Form/Widget/Input/Text_Area.pm  | 1 +
 lib/CGI/Test/Form/Widget/Input/Text_Field.pm | 1 +
 lib/CGI/Test/Form/Widget/Menu.pm             | 1 +
 lib/CGI/Test/Form/Widget/Menu/List.pm        | 1 +
 lib/CGI/Test/Form/Widget/Menu/Popup.pm       | 1 +
 lib/CGI/Test/Input/Multipart.pm              | 1 +
 lib/CGI/Test/Input/URL.pm                    | 1 +
 lib/CGI/Test/Page.pm                         | 1 +
 lib/CGI/Test/Page/Error.pm                   | 1 +
 lib/CGI/Test/Page/HTML.pm                    | 1 +
 lib/CGI/Test/Page/Other.pm                   | 1 +
 lib/CGI/Test/Page/Real.pm                    | 1 +
 lib/CGI/Test/Page/Text.pm                    | 1 +
 t/01_env.t                                   | 3 +++
 t/02_parsing.t                               | 3 +++
 t/03_get.t                                   | 3 +++
 t/04_post.t                                  | 3 +++
 t/05_play_get.t                              | 3 +++
 t/06_play_post.t                             | 3 +++
 t/07_play_multi.t                            | 3 +++
 t/pod.t                                      | 3 +++
 36 files changed, 52 insertions(+)

diff --git a/lib/CGI/Test/Form.pm b/lib/CGI/Test/Form.pm
index 06ea4ef..572db06 100644
--- a/lib/CGI/Test/Form.pm
+++ b/lib/CGI/Test/Form.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form;
 use strict;
+use warnings; 
 ####################################################################
 # $Id: Form.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Group.pm b/lib/CGI/Test/Form/Group.pm
index 8e122b6..290645d 100644
--- a/lib/CGI/Test/Form/Group.pm
+++ b/lib/CGI/Test/Form/Group.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Group;
 use strict;
+use warnings;
 ################################################################
 # $Id: Group.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget.pm b/lib/CGI/Test/Form/Widget.pm
index a2b82f9..054ddb9 100644
--- a/lib/CGI/Test/Form/Widget.pm
+++ b/lib/CGI/Test/Form/Widget.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget;
 use strict;
+use warnings;
 ################################################################
 # $Id: Widget.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Box.pm b/lib/CGI/Test/Form/Widget/Box.pm
index 2d38375..85c1fd9 100644
--- a/lib/CGI/Test/Form/Widget/Box.pm
+++ b/lib/CGI/Test/Form/Widget/Box.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Box;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Box.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Box/Check.pm b/lib/CGI/Test/Form/Widget/Box/Check.pm
index 050ff8f..a3d1ed0 100644
--- a/lib/CGI/Test/Form/Widget/Box/Check.pm
+++ b/lib/CGI/Test/Form/Widget/Box/Check.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Box::Check;
 use strict;
+use warnings;
 ##################################################################
 # $Id: Check.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Box/Radio.pm b/lib/CGI/Test/Form/Widget/Box/Radio.pm
index dc5d8ea..aaac70d 100644
--- a/lib/CGI/Test/Form/Widget/Box/Radio.pm
+++ b/lib/CGI/Test/Form/Widget/Box/Radio.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Box::Radio;
 use strict;
+use warnings;
 ##################################################################
 # $Id: Radio.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Button.pm b/lib/CGI/Test/Form/Widget/Button.pm
index 530786e..f40840e 100644
--- a/lib/CGI/Test/Form/Widget/Button.pm
+++ b/lib/CGI/Test/Form/Widget/Button.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Button;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Button.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Button/Image.pm b/lib/CGI/Test/Form/Widget/Button/Image.pm
index 031e4bd..7a5fc80 100644
--- a/lib/CGI/Test/Form/Widget/Button/Image.pm
+++ b/lib/CGI/Test/Form/Widget/Button/Image.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Button::Image;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Image.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Button/Plain.pm b/lib/CGI/Test/Form/Widget/Button/Plain.pm
index 2d57aaf..ddbf513 100644
--- a/lib/CGI/Test/Form/Widget/Button/Plain.pm
+++ b/lib/CGI/Test/Form/Widget/Button/Plain.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Button::Plain;
 use strict;
+use warnings;
 ##################################################################
 # $Id: Plain.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Button/Reset.pm b/lib/CGI/Test/Form/Widget/Button/Reset.pm
index 5e5928b..ab56075 100644
--- a/lib/CGI/Test/Form/Widget/Button/Reset.pm
+++ b/lib/CGI/Test/Form/Widget/Button/Reset.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Button::Reset;
 use strict;
+use warnings;
 ##################################################################
 # $Id: Reset.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Button/Submit.pm b/lib/CGI/Test/Form/Widget/Button/Submit.pm
index 4d58e6b..91aa507 100644
--- a/lib/CGI/Test/Form/Widget/Button/Submit.pm
+++ b/lib/CGI/Test/Form/Widget/Button/Submit.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Button::Submit;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Submit.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Hidden.pm b/lib/CGI/Test/Form/Widget/Hidden.pm
index 6486e39..cfc0974 100644
--- a/lib/CGI/Test/Form/Widget/Hidden.pm
+++ b/lib/CGI/Test/Form/Widget/Hidden.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Hidden;
 use strict;
+use warnings;
 ##################################################################
 # $Id: Hidden.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Input.pm b/lib/CGI/Test/Form/Widget/Input.pm
index 23043a6..91e6940 100644
--- a/lib/CGI/Test/Form/Widget/Input.pm
+++ b/lib/CGI/Test/Form/Widget/Input.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Input;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Input.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Input/File.pm b/lib/CGI/Test/Form/Widget/Input/File.pm
index 8dba7e6..764a233 100644
--- a/lib/CGI/Test/Form/Widget/Input/File.pm
+++ b/lib/CGI/Test/Form/Widget/Input/File.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Input::File;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: File.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Input/Password.pm b/lib/CGI/Test/Form/Widget/Input/Password.pm
index 2ab735b..ddc20da 100644
--- a/lib/CGI/Test/Form/Widget/Input/Password.pm
+++ b/lib/CGI/Test/Form/Widget/Input/Password.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Input::Password;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Password.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Input/Text_Area.pm b/lib/CGI/Test/Form/Widget/Input/Text_Area.pm
index b0c75c0..7f87bba 100644
--- a/lib/CGI/Test/Form/Widget/Input/Text_Area.pm
+++ b/lib/CGI/Test/Form/Widget/Input/Text_Area.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Input::Text_Area;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Text_Area.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Input/Text_Field.pm b/lib/CGI/Test/Form/Widget/Input/Text_Field.pm
index bc17551..c7f6e2e 100644
--- a/lib/CGI/Test/Form/Widget/Input/Text_Field.pm
+++ b/lib/CGI/Test/Form/Widget/Input/Text_Field.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Input::Text_Field;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Text_Field.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Menu.pm b/lib/CGI/Test/Form/Widget/Menu.pm
index 095baec..406b1b4 100644
--- a/lib/CGI/Test/Form/Widget/Menu.pm
+++ b/lib/CGI/Test/Form/Widget/Menu.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Menu;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Menu.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Menu/List.pm b/lib/CGI/Test/Form/Widget/Menu/List.pm
index 2b6b178..b89f12e 100644
--- a/lib/CGI/Test/Form/Widget/Menu/List.pm
+++ b/lib/CGI/Test/Form/Widget/Menu/List.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Menu::List;
 use strict;
+use warnings;
 ##################################################################
 # $Id: List.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Form/Widget/Menu/Popup.pm b/lib/CGI/Test/Form/Widget/Menu/Popup.pm
index c6a5e8d..ee50283 100644
--- a/lib/CGI/Test/Form/Widget/Menu/Popup.pm
+++ b/lib/CGI/Test/Form/Widget/Menu/Popup.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Form::Widget::Menu::Popup;
 use strict;
+use warnings; 
 ##################################################################
 # $Id: Popup.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Input/Multipart.pm b/lib/CGI/Test/Input/Multipart.pm
index 3edc605..73fc40f 100644
--- a/lib/CGI/Test/Input/Multipart.pm
+++ b/lib/CGI/Test/Input/Multipart.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Input::Multipart;
 use strict;
+use warnings; 
 ####################################################################
 # $Id: Multipart.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Input/URL.pm b/lib/CGI/Test/Input/URL.pm
index 65871e1..b8842ef 100644
--- a/lib/CGI/Test/Input/URL.pm
+++ b/lib/CGI/Test/Input/URL.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Input::URL;
 use strict;
+use warnings;
 ####################################################################
 # $Id: URL.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Page.pm b/lib/CGI/Test/Page.pm
index cdfd267..98ee7c7 100644
--- a/lib/CGI/Test/Page.pm
+++ b/lib/CGI/Test/Page.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Page;
 use strict;
+use warnings;
 ####################################################################
 # $Id: Page.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Page/Error.pm b/lib/CGI/Test/Page/Error.pm
index ee0d127..bf93e25 100644
--- a/lib/CGI/Test/Page/Error.pm
+++ b/lib/CGI/Test/Page/Error.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Page::Error;
 use strict;
+use warnings; 
 ####################################################################
 # $Id: Error.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Page/HTML.pm b/lib/CGI/Test/Page/HTML.pm
index 0b7b778..aec1e61 100644
--- a/lib/CGI/Test/Page/HTML.pm
+++ b/lib/CGI/Test/Page/HTML.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Page::HTML;
 use strict;
+use warnings; 
 ####################################################################
 # $Id: HTML.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Page/Other.pm b/lib/CGI/Test/Page/Other.pm
index 8e1c09a..bb59ed8 100644
--- a/lib/CGI/Test/Page/Other.pm
+++ b/lib/CGI/Test/Page/Other.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Page::Other;
 use strict;
+use warnings;
 ####################################################################
 # $Id: Other.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Page/Real.pm b/lib/CGI/Test/Page/Real.pm
index 7ed3ae3..f242338 100644
--- a/lib/CGI/Test/Page/Real.pm
+++ b/lib/CGI/Test/Page/Real.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Page::Real;
 use strict;
+use warnings; 
 ####################################################################
 # $Id: Real.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/lib/CGI/Test/Page/Text.pm b/lib/CGI/Test/Page/Text.pm
index b16bc7f..9814ed6 100644
--- a/lib/CGI/Test/Page/Text.pm
+++ b/lib/CGI/Test/Page/Text.pm
@@ -1,5 +1,6 @@
 package CGI::Test::Page::Text;
 use strict;
+use warnings;
 ####################################################################
 # $Id: Text.pm 411 2011-09-26 11:19:30Z nohuhu at nohuhu.org $
 # $Name: cgi-test_0-104_t1 $
diff --git a/t/01_env.t b/t/01_env.t
index 8365b38..fd6ea3f 100644
--- a/t/01_env.t
+++ b/t/01_env.t
@@ -1,3 +1,6 @@
+use strict;
+use warnings; 
+
 use Config;
 use Test::More tests => 16;
 
diff --git a/t/02_parsing.t b/t/02_parsing.t
index 4063505..f0321a3 100644
--- a/t/02_parsing.t
+++ b/t/02_parsing.t
@@ -1,3 +1,6 @@
+use strict; 
+use warnings; 
+
 use Config;
 use URI;
 
diff --git a/t/03_get.t b/t/03_get.t
index 64951da..0d3571e 100644
--- a/t/03_get.t
+++ b/t/03_get.t
@@ -1,3 +1,6 @@
+use strict;
+use warnings; 
+
 use Config;
 
 use Test::More tests => 14;
diff --git a/t/04_post.t b/t/04_post.t
index 8f3c689..2319cb7 100644
--- a/t/04_post.t
+++ b/t/04_post.t
@@ -1,3 +1,6 @@
+use strict;
+use warnings;
+
 use Config;
 
 use Test::More tests => 14;
diff --git a/t/05_play_get.t b/t/05_play_get.t
index 0ee6d7d..98d24e0 100644
--- a/t/05_play_get.t
+++ b/t/05_play_get.t
@@ -1,3 +1,6 @@
+use strict; 
+use warnings;
+
 use lib 't/lib';
 
 use browse;
diff --git a/t/06_play_post.t b/t/06_play_post.t
index 12f5e40..d4bfb3e 100644
--- a/t/06_play_post.t
+++ b/t/06_play_post.t
@@ -1,3 +1,6 @@
+use strict;
+use warnings; 
+
 use lib 't/lib';
 
 use browse;
diff --git a/t/07_play_multi.t b/t/07_play_multi.t
index a4ce05b..8198166 100644
--- a/t/07_play_multi.t
+++ b/t/07_play_multi.t
@@ -1,3 +1,6 @@
+use strict; 
+use warnings; 
+
 use lib 't/lib';
 
 use browse;
diff --git a/t/pod.t b/t/pod.t
index 6abe690..a2bb964 100644
--- a/t/pod.t
+++ b/t/pod.t
@@ -1,3 +1,6 @@
+use strict;
+use warnings; 
+
 use Test::More;
 
 if ( $ENV{POD_TESTS} ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcgi-test-perl.git



More information about the Pkg-perl-cvs-commits mailing list