Commit 9f3d18d4 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 996893: Perl 5.18 and newer throw tons of warnings about deprecated modules

r=dkl a=sgreen
parent c19dc4ff
...@@ -9,6 +9,7 @@ package Bugzilla; ...@@ -9,6 +9,7 @@ package Bugzilla;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
# We want any compile errors to get to the browser, if possible. # We want any compile errors to get to the browser, if possible.
BEGIN { BEGIN {
......
...@@ -9,6 +9,7 @@ package Bugzilla::Attachment; ...@@ -9,6 +9,7 @@ package Bugzilla::Attachment;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
=head1 NAME =head1 NAME
......
...@@ -9,6 +9,7 @@ package Bugzilla::Attachment::PatchReader; ...@@ -9,6 +9,7 @@ package Bugzilla::Attachment::PatchReader;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Config; use Config;
use IO::Select; use IO::Select;
......
...@@ -9,6 +9,8 @@ package Bugzilla::Auth; ...@@ -9,6 +9,8 @@ package Bugzilla::Auth;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use fields qw( use fields qw(
_info_getter _info_getter
_verifier _verifier
......
...@@ -9,6 +9,8 @@ package Bugzilla::Auth::Login; ...@@ -9,6 +9,8 @@ package Bugzilla::Auth::Login;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use fields qw(); use fields qw();
# Determines whether or not a user can logout. It's really a subroutine, # Determines whether or not a user can logout. It's really a subroutine,
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::APIKey; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::APIKey;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::CGI; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::CGI;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Auth::Login); use parent qw(Bugzilla::Auth::Login);
use constant user_can_create_account => 1; use constant user_can_create_account => 1;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Cookie; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Cookie;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use fields qw(_login_token); use fields qw(_login_token);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Env; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Env;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Auth::Login); use parent qw(Bugzilla::Auth::Login);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Stack; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Stack;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use fields qw( use fields qw(
......
...@@ -9,6 +9,8 @@ package Bugzilla::Auth::Persist::Cookie; ...@@ -9,6 +9,8 @@ package Bugzilla::Auth::Persist::Cookie;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use fields qw(); use fields qw();
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,8 @@ package Bugzilla::Auth::Verify; ...@@ -9,6 +9,8 @@ package Bugzilla::Auth::Verify;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use fields qw(); use fields qw();
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::DB; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::DB;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Auth::Verify); use parent qw(Bugzilla::Auth::Verify);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::LDAP; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::LDAP;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use fields qw( use fields qw(
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::RADIUS; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::RADIUS;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Auth::Verify); use parent qw(Bugzilla::Auth::Verify);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::Stack; ...@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::Stack;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use fields qw( use fields qw(
......
...@@ -9,6 +9,7 @@ package Bugzilla::Bug; ...@@ -9,6 +9,7 @@ package Bugzilla::Bug;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Attachment; use Bugzilla::Attachment;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugMail; ...@@ -9,6 +9,7 @@ package Bugzilla::BugMail;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::User; use Bugzilla::User;
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Bugzilla; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Bugzilla;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Bugzilla::Local; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Bugzilla::Local;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl::Bugzilla); use parent qw(Bugzilla::BugUrl::Bugzilla);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Debian; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Debian;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::GitHub; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::GitHub;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Google; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Google;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::JIRA; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::JIRA;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Launchpad; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Launchpad;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::MantisBT; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::MantisBT;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::SourceForge; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::SourceForge;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Trac; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Trac;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
......
...@@ -9,6 +9,7 @@ package Bugzilla::BugUserLastVisit; ...@@ -9,6 +9,7 @@ package Bugzilla::BugUserLastVisit;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::CGI; ...@@ -9,6 +9,7 @@ package Bugzilla::CGI;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(CGI); use parent qw(CGI);
......
...@@ -15,6 +15,7 @@ package Bugzilla::Chart; ...@@ -15,6 +15,7 @@ package Bugzilla::Chart;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Classification; ...@@ -9,6 +9,7 @@ package Bugzilla::Classification;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Field; use Bugzilla::Field;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Comment; ...@@ -9,6 +9,7 @@ package Bugzilla::Comment;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Comment::TagWeights; ...@@ -9,6 +9,7 @@ package Bugzilla::Comment::TagWeights;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Component; ...@@ -9,6 +9,7 @@ package Bugzilla::Component;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
......
...@@ -9,8 +9,10 @@ package Bugzilla::Config; ...@@ -9,8 +9,10 @@ package Bugzilla::Config;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Hook; use Bugzilla::Hook;
use Data::Dumper; use Data::Dumper;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Admin; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Admin;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Advanced; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Advanced;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Attachment; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Attachment;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Auth; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Auth;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::BugChange; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::BugChange;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Bugzilla::Status; use Bugzilla::Status;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::BugFields; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::BugFields;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Bugzilla::Field; use Bugzilla::Field;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Common; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Common;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Email::Address; use Email::Address;
use Socket; use Socket;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Core; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Core;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::DependencyGraph; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::DependencyGraph;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::General; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::General;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::GroupSecurity; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::GroupSecurity;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Bugzilla::Group; use Bugzilla::Group;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::LDAP; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::LDAP;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::MTA; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::MTA;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
# Return::Value 1.666002 pollutes the error log with warnings about this # Return::Value 1.666002 pollutes the error log with warnings about this
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Memcached; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Memcached;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::PatchViewer; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::PatchViewer;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::Query; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::Query;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::RADIUS; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::RADIUS;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::ShadowDB; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::ShadowDB;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Config::UserMatch; ...@@ -9,6 +9,7 @@ package Bugzilla::Config::UserMatch;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Constants; ...@@ -9,6 +9,7 @@ package Bugzilla::Constants;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
......
...@@ -9,6 +9,7 @@ package Bugzilla::DB; ...@@ -9,6 +9,7 @@ package Bugzilla::DB;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use DBI; use DBI;
......
...@@ -23,6 +23,7 @@ package Bugzilla::DB::Mysql; ...@@ -23,6 +23,7 @@ package Bugzilla::DB::Mysql;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::DB); use parent qw(Bugzilla::DB);
......
...@@ -23,6 +23,7 @@ package Bugzilla::DB::Oracle; ...@@ -23,6 +23,7 @@ package Bugzilla::DB::Oracle;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::DB); use parent qw(Bugzilla::DB);
...@@ -721,6 +722,7 @@ package Bugzilla::DB::Oracle::st; ...@@ -721,6 +722,7 @@ package Bugzilla::DB::Oracle::st;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent -norequire, qw(DBI::st); use parent -norequire, qw(DBI::st);
......
...@@ -23,6 +23,7 @@ package Bugzilla::DB::Pg; ...@@ -23,6 +23,7 @@ package Bugzilla::DB::Pg;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Version; use Bugzilla::Version;
......
...@@ -17,6 +17,7 @@ package Bugzilla::DB::Schema; ...@@ -17,6 +17,7 @@ package Bugzilla::DB::Schema;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Hook; use Bugzilla::Hook;
......
...@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Mysql; ...@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Mysql;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Oracle; ...@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Oracle;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::DB::Schema); use parent qw(Bugzilla::DB::Schema);
use Carp qw(confess); use Carp qw(confess);
......
...@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Pg; ...@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Pg;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::DB::Schema); use parent qw(Bugzilla::DB::Schema);
use Storable qw(dclone); use Storable qw(dclone);
......
...@@ -9,6 +9,7 @@ package Bugzilla::DB::Schema::Sqlite; ...@@ -9,6 +9,7 @@ package Bugzilla::DB::Schema::Sqlite;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::DB::Schema); use parent qw(Bugzilla::DB::Schema);
......
...@@ -9,6 +9,7 @@ package Bugzilla::DB::Sqlite; ...@@ -9,6 +9,7 @@ package Bugzilla::DB::Sqlite;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::DB); use parent qw(Bugzilla::DB);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Error; ...@@ -9,6 +9,7 @@ package Bugzilla::Error;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Extension; ...@@ -9,6 +9,7 @@ package Bugzilla::Extension;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -59,6 +59,7 @@ package Bugzilla::Field; ...@@ -59,6 +59,7 @@ package Bugzilla::Field;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter Bugzilla::Object); use parent qw(Exporter Bugzilla::Object);
@Bugzilla::Field::EXPORT = qw(check_field get_field_id get_legal_field_values); @Bugzilla::Field::EXPORT = qw(check_field get_field_id get_legal_field_values);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Field::Choice; ...@@ -9,6 +9,7 @@ package Bugzilla::Field::Choice;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Field::ChoiceInterface; ...@@ -9,6 +9,7 @@ package Bugzilla::Field::ChoiceInterface;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Flag; ...@@ -9,6 +9,7 @@ package Bugzilla::Flag;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
=head1 NAME =head1 NAME
......
...@@ -9,6 +9,7 @@ package Bugzilla::FlagType; ...@@ -9,6 +9,7 @@ package Bugzilla::FlagType;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
=head1 NAME =head1 NAME
......
...@@ -9,6 +9,7 @@ package Bugzilla::Group; ...@@ -9,6 +9,7 @@ package Bugzilla::Group;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Hook; ...@@ -9,6 +9,7 @@ package Bugzilla::Hook;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
sub process { sub process {
my ($name, $args) = @_; my ($name, $args) = @_;
......
...@@ -17,6 +17,7 @@ package Bugzilla::Install; ...@@ -17,6 +17,7 @@ package Bugzilla::Install;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Component; use Bugzilla::Component;
use Bugzilla::Config qw(:admin); use Bugzilla::Config qw(:admin);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Install::CPAN; ...@@ -9,6 +9,7 @@ package Bugzilla::Install::CPAN;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
our @EXPORT = qw( our @EXPORT = qw(
......
...@@ -12,6 +12,7 @@ package Bugzilla::Install::DB; ...@@ -12,6 +12,7 @@ package Bugzilla::Install::DB;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Hook; use Bugzilla::Hook;
......
...@@ -17,6 +17,7 @@ package Bugzilla::Install::Filesystem; ...@@ -17,6 +17,7 @@ package Bugzilla::Install::Filesystem;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -17,6 +17,7 @@ package Bugzilla::Install::Localconfig; ...@@ -17,6 +17,7 @@ package Bugzilla::Install::Localconfig;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Install::Util qw(bin_loc install_string); use Bugzilla::Install::Util qw(bin_loc install_string);
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install::Requirements; ...@@ -15,6 +15,7 @@ package Bugzilla::Install::Requirements;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Install::Util qw(install_string bin_loc use Bugzilla::Install::Util qw(install_string bin_loc
......
...@@ -13,6 +13,7 @@ package Bugzilla::Install::Util; ...@@ -13,6 +13,7 @@ package Bugzilla::Install::Util;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Job::BugMail; ...@@ -9,6 +9,7 @@ package Bugzilla::Job::BugMail;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::BugMail; use Bugzilla::BugMail;
BEGIN { eval "use parent qw(Bugzilla::Job::Mailer)"; } BEGIN { eval "use parent qw(Bugzilla::Job::Mailer)"; }
......
...@@ -9,6 +9,7 @@ package Bugzilla::Job::Mailer; ...@@ -9,6 +9,7 @@ package Bugzilla::Job::Mailer;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Mailer; use Bugzilla::Mailer;
BEGIN { eval "use parent qw(TheSchwartz::Worker)"; } BEGIN { eval "use parent qw(TheSchwartz::Worker)"; }
......
...@@ -9,6 +9,7 @@ package Bugzilla::JobQueue; ...@@ -9,6 +9,7 @@ package Bugzilla::JobQueue;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -13,6 +13,7 @@ package Bugzilla::JobQueue::Runner; ...@@ -13,6 +13,7 @@ package Bugzilla::JobQueue::Runner;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Cwd qw(abs_path); use Cwd qw(abs_path);
use File::Basename; use File::Basename;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Keyword; ...@@ -9,6 +9,7 @@ package Bugzilla::Keyword;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Mailer; ...@@ -9,6 +9,7 @@ package Bugzilla::Mailer;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
@Bugzilla::Mailer::EXPORT = qw(MessageToMTA build_thread_marker); @Bugzilla::Mailer::EXPORT = qw(MessageToMTA build_thread_marker);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Migrate; ...@@ -9,6 +9,7 @@ package Bugzilla::Migrate;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Attachment; use Bugzilla::Attachment;
use Bugzilla::Bug qw(LogActivityEntry); use Bugzilla::Bug qw(LogActivityEntry);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Migrate::Gnats; ...@@ -9,6 +9,7 @@ package Bugzilla::Migrate::Gnats;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Migrate); use parent qw(Bugzilla::Migrate);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Milestone; ...@@ -9,6 +9,7 @@ package Bugzilla::Milestone;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Object; ...@@ -9,6 +9,7 @@ package Bugzilla::Object;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Hook; use Bugzilla::Hook;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Product; ...@@ -9,6 +9,7 @@ package Bugzilla::Product;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::RNG; ...@@ -9,6 +9,7 @@ package Bugzilla::RNG;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
use Bugzilla::Constants qw(ON_WINDOWS); use Bugzilla::Constants qw(ON_WINDOWS);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Report; ...@@ -9,6 +9,7 @@ package Bugzilla::Report;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search; ...@@ -9,6 +9,7 @@ package Bugzilla::Search;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
@Bugzilla::Search::EXPORT = qw( @Bugzilla::Search::EXPORT = qw(
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search::Clause; ...@@ -9,6 +9,7 @@ package Bugzilla::Search::Clause;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Search::Condition qw(condition); use Bugzilla::Search::Condition qw(condition);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search::ClauseGroup; ...@@ -9,6 +9,7 @@ package Bugzilla::Search::ClauseGroup;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Search::Clause); use parent qw(Bugzilla::Search::Clause);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search::Condition; ...@@ -9,6 +9,7 @@ package Bugzilla::Search::Condition;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
our @EXPORT_OK = qw(condition); our @EXPORT_OK = qw(condition);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search::Quicksearch; ...@@ -9,6 +9,7 @@ package Bugzilla::Search::Quicksearch;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search::Recent; ...@@ -9,6 +9,7 @@ package Bugzilla::Search::Recent;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Search::Saved; ...@@ -9,6 +9,7 @@ package Bugzilla::Search::Saved;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Send::Sendmail; ...@@ -9,6 +9,7 @@ package Bugzilla::Send::Sendmail;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Email::Send::Sendmail); use parent qw(Email::Send::Sendmail);
......
...@@ -16,6 +16,7 @@ package Bugzilla::Series; ...@@ -16,6 +16,7 @@ package Bugzilla::Series;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Status; ...@@ -9,6 +9,7 @@ package Bugzilla::Status;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
# This subclasses Bugzilla::Field::Choice instead of implementing # This subclasses Bugzilla::Field::Choice instead of implementing
# ChoiceInterface, because a bug status literally is a special type # ChoiceInterface, because a bug status literally is a special type
......
...@@ -10,6 +10,7 @@ package Bugzilla::Template; ...@@ -10,6 +10,7 @@ package Bugzilla::Template;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
......
...@@ -10,6 +10,7 @@ package Bugzilla::Template::Context; ...@@ -10,6 +10,7 @@ package Bugzilla::Template::Context;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Template::Context); use parent qw(Template::Context);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Template::Plugin::Bugzilla; ...@@ -9,6 +9,7 @@ package Bugzilla::Template::Plugin::Bugzilla;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Template::Plugin); use parent qw(Template::Plugin);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Template::Plugin::Hook; ...@@ -9,6 +9,7 @@ package Bugzilla::Template::Plugin::Hook;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Template::Plugin); use parent qw(Template::Plugin);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Token; ...@@ -9,6 +9,7 @@ package Bugzilla::Token;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Update; ...@@ -9,6 +9,7 @@ package Bugzilla::Update;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::User; ...@@ -9,6 +9,7 @@ package Bugzilla::User;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -9,6 +9,7 @@ package Bugzilla::User::APIKey; ...@@ -9,6 +9,7 @@ package Bugzilla::User::APIKey;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -10,6 +10,7 @@ package Bugzilla::User::Setting; ...@@ -10,6 +10,7 @@ package Bugzilla::User::Setting;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
......
...@@ -9,6 +9,7 @@ package Bugzilla::User::Setting::Lang; ...@@ -9,6 +9,7 @@ package Bugzilla::User::Setting::Lang;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::User::Setting); use parent qw(Bugzilla::User::Setting);
......
...@@ -10,6 +10,7 @@ package Bugzilla::User::Setting::Skin; ...@@ -10,6 +10,7 @@ package Bugzilla::User::Setting::Skin;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::User::Setting); use parent qw(Bugzilla::User::Setting);
......
...@@ -9,6 +9,7 @@ package Bugzilla::User::Setting::Timezone; ...@@ -9,6 +9,7 @@ package Bugzilla::User::Setting::Timezone;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use DateTime::TimeZone; use DateTime::TimeZone;
......
...@@ -9,6 +9,7 @@ package Bugzilla::UserAgent; ...@@ -9,6 +9,7 @@ package Bugzilla::UserAgent;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
our @EXPORT = qw(detect_platform detect_op_sys); our @EXPORT = qw(detect_platform detect_op_sys);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Util; ...@@ -9,6 +9,7 @@ package Bugzilla::Util;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
@Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed @Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed
......
...@@ -9,6 +9,7 @@ package Bugzilla::Version; ...@@ -9,6 +9,7 @@ package Bugzilla::Version;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object Exporter); use parent qw(Bugzilla::Object Exporter);
......
...@@ -11,6 +11,7 @@ package Bugzilla::WebService; ...@@ -11,6 +11,7 @@ package Bugzilla::WebService;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Server; use Bugzilla::WebService::Server;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Bug; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Bug;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::BugUserLastVisit; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::BugUserLastVisit;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Bugzilla; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Bugzilla;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Classification; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Classification;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw (Bugzilla::WebService); use parent qw (Bugzilla::WebService);
......
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
package Bugzilla::WebService::Component; package Bugzilla::WebService::Component;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use base qw(Bugzilla::WebService); use base qw(Bugzilla::WebService);
use Bugzilla::Component; use Bugzilla::Component;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Constants; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Constants;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::FlagType; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::FlagType;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
use Bugzilla::Component; use Bugzilla::Component;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Group; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Group;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Product; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Product;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
use Bugzilla::Product; use Bugzilla::Product;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util qw(datetime_from); use Bugzilla::Util qw(datetime_from);
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::JSONRPC; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::JSONRPC;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Server; use Bugzilla::WebService::Server;
BEGIN { BEGIN {
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService::Server::JSONRPC); use parent qw(Bugzilla::WebService::Server::JSONRPC);
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Bug; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Bug;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::Bug; use Bugzilla::WebService::Bug;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Bugzilla; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Bugzilla;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::Bugzilla; use Bugzilla::WebService::Bugzilla;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Classification; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Classification;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::Classification; use Bugzilla::WebService::Classification;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Component; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Component;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::Component; use Bugzilla::WebService::Component;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::FlagType; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::FlagType;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::FlagType; use Bugzilla::WebService::FlagType;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Group; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Group;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::Group; use Bugzilla::WebService::Group;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Product; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Product;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::Product; use Bugzilla::WebService::Product;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::User; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::User;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::WebService::Constants; use Bugzilla::WebService::Constants;
use Bugzilla::WebService::User; use Bugzilla::WebService::User;
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::XMLRPC; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::XMLRPC;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use XMLRPC::Transport::HTTP; use XMLRPC::Transport::HTTP;
use Bugzilla::WebService::Server; use Bugzilla::WebService::Server;
...@@ -107,6 +108,7 @@ package Bugzilla::XMLRPC::Deserializer; ...@@ -107,6 +108,7 @@ package Bugzilla::XMLRPC::Deserializer;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
# We can't use "use parent" because XMLRPC::Serializer doesn't return # We can't use "use parent" because XMLRPC::Serializer doesn't return
# a true value. # a true value.
...@@ -205,6 +207,7 @@ package Bugzilla::XMLRPC::SOM; ...@@ -205,6 +207,7 @@ package Bugzilla::XMLRPC::SOM;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use XMLRPC::Lite; use XMLRPC::Lite;
our @ISA = qw(XMLRPC::SOM); our @ISA = qw(XMLRPC::SOM);
...@@ -231,6 +234,7 @@ package Bugzilla::XMLRPC::Serializer; ...@@ -231,6 +234,7 @@ package Bugzilla::XMLRPC::Serializer;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Scalar::Util qw(blessed reftype); use Scalar::Util qw(blessed reftype);
# We can't use "use parent" because XMLRPC::Serializer doesn't return # We can't use "use parent" because XMLRPC::Serializer doesn't return
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::User; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::User;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::WebService); use parent qw(Bugzilla::WebService);
......
...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Util; ...@@ -9,6 +9,7 @@ package Bugzilla::WebService::Util;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Flag; use Bugzilla::Flag;
use Bugzilla::FlagType; use Bugzilla::FlagType;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Whine; ...@@ -9,6 +9,7 @@ package Bugzilla::Whine;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Whine::Query; ...@@ -9,6 +9,7 @@ package Bugzilla::Whine::Query;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
...@@ -9,6 +9,7 @@ package Bugzilla::Whine::Schedule; ...@@ -9,6 +9,7 @@ package Bugzilla::Whine::Schedule;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Object); use parent qw(Bugzilla::Object);
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -12,8 +12,10 @@ ...@@ -12,8 +12,10 @@
# Initialization # Initialization
###################################################################### ######################################################################
use strict;
use 5.10.1; use 5.10.1;
use strict;
use warnings;
use File::Basename; use File::Basename;
use Getopt::Long qw(:config bundling); use Getopt::Long qw(:config bundling);
use Pod::Usage; use Pod::Usage;
......
#!/usr/bin/perl -wT #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Getopt::Long qw(:config bundling); use Getopt::Long qw(:config bundling);
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ package Bugzilla; ...@@ -6,6 +6,7 @@ package Bugzilla;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
####################################################################### #######################################################################
# The goal of this tiny module is to let Bugzilla packagers of # # The goal of this tiny module is to let Bugzilla packagers of #
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -18,7 +18,10 @@ C<bz_webservice_demo.pl --help> for detailed help ...@@ -18,7 +18,10 @@ C<bz_webservice_demo.pl --help> for detailed help
=cut =cut
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(lib); use lib qw(lib);
use Getopt::Long; use Getopt::Long;
use Pod::Usage; use Pod::Usage;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
use Bugzilla::Constants; use Bugzilla::Constants;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use warnings;
use File::Basename; use File::Basename;
BEGIN { chdir dirname($0) . "/.."; } BEGIN { chdir dirname($0) . "/.."; }
use lib qw(. lib); use lib qw(. lib);
...@@ -51,7 +53,7 @@ sub d { ...@@ -51,7 +53,7 @@ sub d {
# p: print as a single string (normal behavior puts list items on separate lines) # p: print as a single string (normal behavior puts list items on separate lines)
sub p { sub p {
local $^W=0; # suppress possible undefined var message no warnings; # suppress possible undefined var message
print(@_, "\n"); print(@_, "\n");
return (); return ();
} }
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings; use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
...@@ -68,6 +70,8 @@ my ($modules, $subs) = code_files_to_subroutines($to_dir); ...@@ -68,6 +70,8 @@ my ($modules, $subs) = code_files_to_subroutines($to_dir);
my $config_pm = <<END; my $config_pm = <<END;
package Bugzilla::Extension::$extension_name; package Bugzilla::Extension::$extension_name;
use strict; use strict;
use warnings;
use constant NAME => '$extension_name'; use constant NAME => '$extension_name';
$install_requirements $install_requirements
__PACKAGE__->NAME; __PACKAGE__->NAME;
...@@ -76,6 +80,8 @@ END ...@@ -76,6 +80,8 @@ END
my $extension_pm = <<END; my $extension_pm = <<END;
package Bugzilla::Extension::$extension_name; package Bugzilla::Extension::$extension_name;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
$modules $modules
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings; use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings;
=head1 NAME =head1 NAME
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
# mysqld-watcher.pl - a script that watches the running instance of # mysqld-watcher.pl - a script that watches the running instance of
# mysqld and kills off any long-running SELECTs against the shadow_db # mysqld and kills off any long-running SELECTs against the shadow_db
# #
use 5.10.1;
use strict; use strict;
use warnings;
# some configurables: # some configurables:
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,12 +6,10 @@ ...@@ -6,12 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
# This is a script to edit the values of fields that have drop-down
# or select boxes. It is largely a copy of editmilestones.cgi, but
# with some cleanup.
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::BmpConvert; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::BmpConvert;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use constant NAME => 'BmpConvert'; use constant NAME => 'BmpConvert';
use constant REQUIRED_MODULES => [ use constant REQUIRED_MODULES => [
{ {
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::BmpConvert; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::BmpConvert;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
use Image::Magick; use Image::Magick;
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use constant NAME => 'Example'; use constant NAME => 'Example';
use constant REQUIRED_MODULES => [ use constant REQUIRED_MODULES => [
{ {
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example::Auth::Login; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example::Auth::Login;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Auth::Login); use parent qw(Bugzilla::Auth::Login);
use constant user_can_create_account => 0; use constant user_can_create_account => 0;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example::Auth::Verify; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example::Auth::Verify;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Auth::Verify); use parent qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Extension::MoreBugUrl; ...@@ -9,6 +9,7 @@ package Bugzilla::Extension::MoreBugUrl;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use constant NAME => 'MoreBugUrl'; use constant NAME => 'MoreBugUrl';
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
use constant MORE_SUB_CLASSES => qw( use constant MORE_SUB_CLASSES => qw(
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::BitBucket; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::BitBucket;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::GetSatisfaction; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::GetSatisfaction;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::PHP; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::PHP;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::RT; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::RT;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Redmine; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Redmine;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::ReviewBoard; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::ReviewBoard;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Rietveld; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Rietveld;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Savane; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Savane;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::BugUrl); use parent qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -9,5 +9,7 @@ package Bugzilla::Extension::OldBugMove; ...@@ -9,5 +9,7 @@ package Bugzilla::Extension::OldBugMove;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use constant NAME => 'OldBugMove'; use constant NAME => 'OldBugMove';
__PACKAGE__->NAME; __PACKAGE__->NAME;
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::OldBugMove; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::OldBugMove;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Extension::OldBugMove::Params; ...@@ -9,6 +9,7 @@ package Bugzilla::Extension::OldBugMove::Params;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -9,6 +9,7 @@ package Bugzilla::Extension::Voting; ...@@ -9,6 +9,7 @@ package Bugzilla::Extension::Voting;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use constant NAME => 'Voting'; use constant NAME => 'Voting';
......
...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Voting; ...@@ -9,6 +9,8 @@ package Bugzilla::Extension::Voting;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
use Bugzilla::Bug; use Bugzilla::Bug;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
##################################################################### #####################################################################
# #
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Cwd qw(abs_path); use Cwd qw(abs_path);
use File::Basename; use File::Basename;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use File::Basename; use File::Basename;
BEGIN { chdir dirname($0); } BEGIN { chdir dirname($0); }
use lib qw(. lib); use lib qw(. lib);
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -112,6 +112,7 @@ package Bugzilla::ModPerl::ResponseHandler; ...@@ -112,6 +112,7 @@ package Bugzilla::ModPerl::ResponseHandler;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(ModPerl::Registry); use parent qw(ModPerl::Registry);
use Bugzilla; use Bugzilla;
...@@ -148,6 +149,7 @@ package Bugzilla::ModPerl::CleanupHandler; ...@@ -148,6 +149,7 @@ package Bugzilla::ModPerl::CleanupHandler;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use Apache2::Const -compile => qw(OK); use Apache2::Const -compile => qw(OK);
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -6,20 +6,10 @@ ...@@ -6,20 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
# Implementation notes for this file:
#
# 1) the 'id' form parameter is validated early on, and if it is not a valid
# bugid an error will be reported, so it is OK for later code to simply check
# for a defined form 'id' value, and it can assume a valid bugid.
#
# 2) If the 'id' form parameter is not defined (after the initial validation),
# then we are processing multiple bugs, and @idlist will contain the ids.
#
# 3) If we are processing just the one id, then it is stored in @idlist for
# later processing.
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
use 5.10.1; use 5.10.1;
use diagnostics; use diagnostics;
use strict; use strict;
use warnings;
use lib qw(lib); use lib qw(lib);
use Test::Harness qw(&runtests $verbose); use Test::Harness qw(&runtests $verbose);
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use File::Temp; use File::Temp;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Date::Parse; # strptime use Date::Parse; # strptime
......
...@@ -10,8 +10,10 @@ ...@@ -10,8 +10,10 @@
#Bugzilla Test 1# #Bugzilla Test 1#
###Compilation### ###Compilation###
use strict;
use 5.10.1; use 5.10.1;
use strict;
use warnings;
use lib qw(. lib t); use lib qw(. lib t);
use Config; use Config;
use Support::Files; use Support::Files;
...@@ -52,7 +54,7 @@ sub compile_file { ...@@ -52,7 +54,7 @@ sub compile_file {
$libs = join " ", map { "-I\"$_\"" } split /$Config{path_sep}/, $ENV{PERL5LIB}; $libs = join " ", map { "-I\"$_\"" } split /$Config{path_sep}/, $ENV{PERL5LIB};
} }
my $perl = qq{"$^X"}; my $perl = qq{"$^X"};
my $output = `$perl $libs -wc$T $file 2>&1`; my $output = `$perl $libs -c$T $file 2>&1`;
chomp($output); chomp($output);
my $return_val = $?; my $return_val = $?;
$output =~ s/^\Q$file\E syntax OK$//ms; $output =~ s/^\Q$file\E syntax OK$//ms;
......
...@@ -10,15 +10,19 @@ ...@@ -10,15 +10,19 @@
#Bugzilla Test 2# #Bugzilla Test 2#
####GoodPerl##### ####GoodPerl#####
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
use Support::Files; use Support::Files;
use Test::More tests => (scalar(@Support::Files::testitems) * 4); use Test::More tests => (scalar(@Support::Files::testitems)
+ scalar(@Support::Files::test_files)) * 5;
my @testitems = @Support::Files::testitems; # get the files to test. my @testitems = (@Support::Files::test_files, @Support::Files::testitems);
my @require_taint = qw(email_in.pl importxml.pl mod_perl.pl whine.pl);
foreach my $file (@testitems) { foreach my $file (@testitems) {
$file =~ s/\s.*$//; # nuke everything after the first space (#comment) $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
...@@ -38,23 +42,33 @@ foreach my $file (@testitems) { ...@@ -38,23 +42,33 @@ foreach my $file (@testitems) {
my $flags; my $flags;
if (!defined $ext || $ext eq "pl") { if (!defined $ext || $ext eq "pl") {
# standalone programs aren't taint checked yet # standalone programs aren't taint checked yet
$flags = "w"; if (grep { $file eq $_ } @require_taint) {
$flags = 'T';
}
else {
$flags = '';
}
} elsif ($ext eq "pm") { } elsif ($ext eq "pm") {
ok(0, "$file is a module, but has a shebang"); ok(0, "$file is a module, but has a shebang");
next; next;
} elsif ($ext eq "cgi") { } elsif ($ext eq "cgi") {
# cgi files must be taint checked # cgi files must be taint checked
$flags = "wT"; $flags = 'T';
} else { } else {
ok(0, "$file has shebang but unknown extension"); ok(0, "$file has shebang but unknown extension");
next; next;
} }
if ($file_line1 =~ m#^\#\!/usr/bin/perl\s#) { if ($file_line1 =~ m#^\#\!/usr/bin/perl(?:\s-(\w+))?$#) {
if ($file_line1 =~ m#\s-$flags#) { my $file_flags = $1 || '';
ok(1,"$file uses standard perl location and -$flags"); if ($flags eq $file_flags) {
} else { ok(1, "$file uses standard perl location" . ($flags ? " and -$flags flag" : ""));
ok(0,"$file is MISSING -$flags --WARNING"); }
elsif ($flags) {
ok(0, "$file is MISSING -$flags flag --WARNING");
}
else {
ok(0, "$file has unexpected -$file_flags flag --WARNING");
} }
} else { } else {
ok(0,"$file uses non-standard perl location"); ok(0,"$file uses non-standard perl location");
...@@ -63,7 +77,10 @@ foreach my $file (@testitems) { ...@@ -63,7 +77,10 @@ foreach my $file (@testitems) {
} }
foreach my $file (@testitems) { foreach my $file (@testitems) {
my $found_use_perl = 0;
my $found_use_strict = 0; my $found_use_strict = 0;
my $found_use_warnings = 0;
$file =~ s/\s.*$//; # nuke everything after the first space (#comment) $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
next if (!$file); # skip null entries next if (!$file); # skip null entries
if (! open (FILE, $file)) { if (! open (FILE, $file)) {
...@@ -71,38 +88,28 @@ foreach my $file (@testitems) { ...@@ -71,38 +88,28 @@ foreach my $file (@testitems) {
next; next;
} }
while (my $file_line = <FILE>) { while (my $file_line = <FILE>) {
if ($file_line =~ m/^\s*use strict/) { $found_use_perl = 1 if $file_line =~ m/^\s*use 5.10.1/;
$found_use_strict = 1; $found_use_strict = 1 if $file_line =~ m/^\s*use strict/;
last; $found_use_warnings = 1 if $file_line =~ m/^\s*use warnings/;
} last if ($found_use_perl && $found_use_strict && $found_use_warnings);
} }
close (FILE); close (FILE);
if ($found_use_perl) {
ok(1,"$file requires Perl 5.10.1");
} else {
ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING");
}
if ($found_use_strict) { if ($found_use_strict) {
ok(1,"$file uses strict"); ok(1,"$file uses strict");
} else { } else {
ok(0,"$file DOES NOT use strict --WARNING"); ok(0,"$file DOES NOT use strict --WARNING");
} }
}
foreach my $file (@testitems) { if ($found_use_warnings) {
my $found_use_feature = 0; ok(1,"$file uses warnings");
$file =~ s/\s.*$//; # nuke everything after the first space (#comment)
next if (!$file); # skip null entries
if (! open (FILE, $file)) {
ok(0,"could not open $file --WARNING");
next;
}
while (my $file_line = <FILE>) {
if ($file_line =~ m/^\s*use 5.10.1/) {
$found_use_feature = 1;
last;
}
}
close (FILE);
if ($found_use_feature) {
ok(1,"$file requires Perl 5.10.1");
} else { } else {
ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING"); ok(0,"$file DOES NOT use warnings --WARNING");
} }
} }
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
#Bugzilla Test 3# #Bugzilla Test 3#
###Safesystem#### ###Safesystem####
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
...@@ -22,7 +24,7 @@ use Test::More tests => scalar(@Support::Files::testitems); ...@@ -22,7 +24,7 @@ use Test::More tests => scalar(@Support::Files::testitems);
# This will handle verbosity for us automatically. # This will handle verbosity for us automatically.
my $fh; my $fh;
{ {
local $^W = 0; # Don't complain about non-existent filehandles no warnings qw(unopened); # Don't complain about non-existent filehandles
if (-e \*Test::More::TESTOUT) { if (-e \*Test::More::TESTOUT) {
$fh = \*Test::More::TESTOUT; $fh = \*Test::More::TESTOUT;
} elsif (-e \*Test::Builder::TESTOUT) { } elsif (-e \*Test::Builder::TESTOUT) {
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
#Bugzilla Test 4# #Bugzilla Test 4#
####Templates#### ####Templates####
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
...@@ -26,7 +28,7 @@ use Test::More tests => ( scalar(@referenced_files) + 2 * $num_actual_files ); ...@@ -26,7 +28,7 @@ use Test::More tests => ( scalar(@referenced_files) + 2 * $num_actual_files );
# This will handle verbosity for us automatically. # This will handle verbosity for us automatically.
my $fh; my $fh;
{ {
local $^W = 0; # Don't complain about non-existent filehandles no warnings qw(unopened); # Don't complain about non-existent filehandles
if (-e \*Test::More::TESTOUT) { if (-e \*Test::More::TESTOUT) {
$fh = \*Test::More::TESTOUT; $fh = \*Test::More::TESTOUT;
} elsif (-e \*Test::Builder::TESTOUT) { } elsif (-e \*Test::Builder::TESTOUT) {
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
#Bugzilla Test 5# #Bugzilla Test 5#
#####no_tabs##### #####no_tabs#####
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
......
...@@ -10,29 +10,13 @@ ...@@ -10,29 +10,13 @@
#Bugzilla Test 6# #Bugzilla Test 6#
####Spelling##### ####Spelling#####
use 5.10.1;
use strict;
use warnings;
use lib 't'; use lib 't';
use Support::Files; use Support::Files;
BEGIN {
#add the words to check here:
@evilwords = qw(
anyways
appearence
arbitary
cancelled
critera
databasa
dependan
existance
existant
paramater
refered
repsentation
suported
varsion
);
}
# -1 because 006spellcheck.t must not be checked. # -1 because 006spellcheck.t must not be checked.
use Test::More tests => scalar(@Support::Files::testitems) use Test::More tests => scalar(@Support::Files::testitems)
+ scalar(@Support::Files::test_files) - 1; + scalar(@Support::Files::test_files) - 1;
...@@ -41,7 +25,7 @@ use Test::More tests => scalar(@Support::Files::testitems) ...@@ -41,7 +25,7 @@ use Test::More tests => scalar(@Support::Files::testitems)
# This will handle verbosity for us automatically. # This will handle verbosity for us automatically.
my $fh; my $fh;
{ {
local $^W = 0; # Don't complain about non-existent filehandles no warnings qw(unopened); # Don't complain about non-existent filehandles
if (-e \*Test::More::TESTOUT) { if (-e \*Test::More::TESTOUT) {
$fh = \*Test::More::TESTOUT; $fh = \*Test::More::TESTOUT;
} elsif (-e \*Test::Builder::TESTOUT) { } elsif (-e \*Test::Builder::TESTOUT) {
...@@ -53,7 +37,24 @@ my $fh; ...@@ -53,7 +37,24 @@ my $fh;
my @testitems = (@Support::Files::testitems, @Support::Files::test_files); my @testitems = (@Support::Files::testitems, @Support::Files::test_files);
# at last, here we actually run the test... #add the words to check here:
my @evilwords = qw(
anyways
appearence
arbitary
cancelled
critera
databasa
dependan
existance
existant
paramater
refered
repsentation
suported
varsion
);
my $evilwordsregexp = join('|', @evilwords); my $evilwordsregexp = join('|', @evilwords);
foreach my $file (@testitems) { foreach my $file (@testitems) {
......
...@@ -9,14 +9,18 @@ ...@@ -9,14 +9,18 @@
#Bugzilla Test 7# #Bugzilla Test 7#
#####Util.pm##### #####Util.pm#####
use 5.10.1;
use strict;
use warnings;
use lib 't'; use lib 't';
use Support::Files; use Support::Files;
use Test::More tests => 17; use Test::More tests => 17;
use DateTime; use DateTime;
BEGIN { BEGIN {
use_ok(Bugzilla); use_ok('Bugzilla');
use_ok(Bugzilla::Util); use_ok('Bugzilla::Util');
} }
# We need to override user preferences so we can get an expected value when # We need to override user preferences so we can get an expected value when
......
...@@ -15,10 +15,11 @@ ...@@ -15,10 +15,11 @@
# Sample exploit code: '>"><script>alert('Oh dear...')</script> # Sample exploit code: '>"><script>alert('Oh dear...')</script>
use 5.10.1;
use strict; use strict;
use lib qw(. lib t); use warnings;
use vars qw(%safe); use lib qw(. lib t);
use Bugzilla::Constants; use Bugzilla::Constants;
use Support::Templates; use Support::Templates;
...@@ -30,6 +31,7 @@ use Cwd; ...@@ -30,6 +31,7 @@ use Cwd;
my $oldrecsep = $/; my $oldrecsep = $/;
my $topdir = cwd; my $topdir = cwd;
$/ = undef; $/ = undef;
our %safe;
foreach my $path (@Support::Templates::include_paths) { foreach my $path (@Support::Templates::include_paths) {
$path =~ s|\\|/|g if ON_WINDOWS; # convert \ to / in path if on windows $path =~ s|\\|/|g if ON_WINDOWS; # convert \ to / in path if on windows
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
# "[% terms.bug %]". This test makes sure the relevant words aren't used # "[% terms.bug %]". This test makes sure the relevant words aren't used
# bare. # bare.
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
......
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
#Bugzilla Test 10# #Bugzilla Test 10#
## dependencies ## ## dependencies ##
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib t); use lib qw(. lib t);
use Support::Files; use Support::Files;
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
#Bugzilla Test 11# #Bugzilla Test 11#
##POD validation## ##POD validation##
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
...@@ -52,7 +54,7 @@ use constant MODULE_WHITELIST => qw( ...@@ -52,7 +54,7 @@ use constant MODULE_WHITELIST => qw(
# This will handle verbosity for us automatically. # This will handle verbosity for us automatically.
my $fh; my $fh;
{ {
local $^W = 0; # Don't complain about non-existent filehandles no warnings qw(unopened); # Don't complain about non-existent filehandles
if (-e \*Test::More::TESTOUT) { if (-e \*Test::More::TESTOUT) {
$fh = \*Test::More::TESTOUT; $fh = \*Test::More::TESTOUT;
} elsif (-e \*Test::Builder::TESTOUT) { } elsif (-e \*Test::Builder::TESTOUT) {
......
...@@ -11,7 +11,10 @@ ...@@ -11,7 +11,10 @@
#Bugzilla Test 12# #Bugzilla Test 12#
######Errors###### ######Errors######
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib t); use lib qw(. lib t);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
# Check the Bugzilla database schema to ensure no field names conflict # Check the Bugzilla database schema to ensure no field names conflict
# with SQL reserved words. # with SQL reserved words.
use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. t lib); use lib qw(. t lib);
use Bugzilla; use Bugzilla;
use Bugzilla::DB::Schema; use Bugzilla::DB::Schema;
......
...@@ -8,15 +8,19 @@ ...@@ -8,15 +8,19 @@
package Support::Files; package Support::Files;
use 5.10.1;
use strict;
use warnings;
use File::Find; use File::Find;
@additional_files = (); our @additional_files = ();
@files = glob('*'); our @files = glob('*');
find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla'); find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla');
push(@files, 'extensions/create.pl'); push(@files, 'extensions/create.pl');
@extensions = our @extensions =
grep { $_ ne 'extensions/create.pl' && ! -e "$_/disabled" } grep { $_ ne 'extensions/create.pl' && ! -e "$_/disabled" }
glob('extensions/*'); glob('extensions/*');
...@@ -24,7 +28,7 @@ foreach my $extension (@extensions) { ...@@ -24,7 +28,7 @@ foreach my $extension (@extensions) {
find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, $extension); find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, $extension);
} }
@test_files = glob('t/*.t'); our @test_files = glob('t/*.t');
sub isTestingFile { sub isTestingFile {
my ($file) = @_; my ($file) = @_;
...@@ -40,9 +44,11 @@ sub isTestingFile { ...@@ -40,9 +44,11 @@ sub isTestingFile {
return undef; return undef;
} }
foreach $currentfile (@files) { our (@testitems, @module_files);
foreach my $currentfile (@files) {
if (isTestingFile($currentfile)) { if (isTestingFile($currentfile)) {
push(@testitems,$currentfile); push(@testitems, $currentfile);
} }
push(@module_files, $currentfile) if $currentfile =~ /\.pm$/; push(@module_files, $currentfile) if $currentfile =~ /\.pm$/;
} }
......
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Support::Systemexec; package Support::Systemexec;
use 5.10.1;
use strict;
use warnings;
require Exporter; require Exporter;
@ISA = qw(Exporter); @ISA = qw(Exporter);
@EXPORT = qw(system exec); @EXPORT = qw(system exec);
......
...@@ -7,15 +7,15 @@ ...@@ -7,15 +7,15 @@
package Support::Templates; package Support::Templates;
use 5.10.1;
use strict; use strict;
use warnings;
use lib 't'; use lib 't';
use parent qw(Exporter); use parent qw(Exporter);
@Support::Templates::EXPORT = @Support::Templates::EXPORT =
qw(@languages @include_paths @english_default_include_paths qw(@languages @include_paths @english_default_include_paths
%include_path @referenced_files %actual_files $num_actual_files); @referenced_files %actual_files $num_actual_files);
use vars qw(@languages @include_paths @english_default_include_paths
%include_path @referenced_files %actual_files $num_actual_files);
use Bugzilla; use Bugzilla;
use Bugzilla::Constants; use Bugzilla::Constants;
...@@ -25,18 +25,9 @@ use Support::Files; ...@@ -25,18 +25,9 @@ use Support::Files;
use File::Find; use File::Find;
use File::Spec; use File::Spec;
# The available template languages
@languages = ();
# The colon separated includepath per language
%include_path = ();
# All include paths
@include_paths = ();
# English default include paths # English default include paths
push @english_default_include_paths, our @english_default_include_paths =
File::Spec->catdir(bz_locations()->{'templatedir'}, 'en', 'default'); (File::Spec->catdir(bz_locations()->{'templatedir'}, 'en', 'default'));
# And the extensions too # And the extensions too
foreach my $extension (@Support::Files::extensions) { foreach my $extension (@Support::Files::extensions) {
...@@ -47,19 +38,19 @@ foreach my $extension (@Support::Files::extensions) { ...@@ -47,19 +38,19 @@ foreach my $extension (@Support::Files::extensions) {
} }
# Files which are referenced in the cgi files # Files which are referenced in the cgi files
@referenced_files = (); our @referenced_files = ();
# All files sorted by include_path # All files sorted by include_path
%actual_files = (); our %actual_files = ();
# total number of actual_files # total number of actual_files
$num_actual_files = 0; our $num_actual_files = 0;
# Set the template available languages and include paths # Set the template available languages and include paths
@languages = @{ Bugzilla->languages }; our @languages = @{ Bugzilla->languages };
@include_paths = @{ template_include_path({ language => Bugzilla->languages }) }; our @include_paths = @{ template_include_path({ language => Bugzilla->languages }) };
my @files; our @files;
# Local subroutine used with File::Find # Local subroutine used with File::Find
sub find_templates { sub find_templates {
......
...@@ -16,6 +16,7 @@ package Bugzilla::Extension::[% name %]; ...@@ -16,6 +16,7 @@ package Bugzilla::Extension::[% name %];
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use constant NAME => '[% name %]'; use constant NAME => '[% name %]';
......
...@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %]; ...@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %];
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Bugzilla::Extension); use parent qw(Bugzilla::Extension);
# This code for this is in [% path %]/lib/Util.pm # This code for this is in [% path %]/lib/Util.pm
......
...@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %]::Util; ...@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %]::Util;
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use parent qw(Exporter); use parent qw(Exporter);
our @EXPORT = qw( our @EXPORT = qw(
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
say "content-type:text/plain\n"; say "content-type:text/plain\n";
say "OK " . ($::ENV{MOD_PERL} || "mod_cgi"); say "OK " . ($::ENV{MOD_PERL} || "mod_cgi");
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -w #!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
#!/usr/bin/perl -wT #!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use 5.10.1; use 5.10.1;
use strict; use strict;
use warnings;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment