Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions extensions/Example/template/en/default/setup/strings.txt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# Contributor(s):
# Max Kanat-Alexander <mkanat@bugzilla.org>

# This file is loaded inside a Safe compartment, so keep it as plain package
# data: do not add strict/warnings pragmas or lexical %strings declarations.

%strings = (feature_example_acme => 'Example Extension: Acme Feature',);
Comment thread
justdave marked this conversation as resolved.

1;
4 changes: 4 additions & 0 deletions extensions/OldBugMove/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
# Max Kanat-Alexander <mkanat@bugzilla.org>

package Bugzilla::Extension::OldBugMove;

use 5.14.0;
use strict;
use warnings;

use constant NAME => 'OldBugMove';
__PACKAGE__->NAME;
4 changes: 4 additions & 0 deletions extensions/OldBugMove/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
# Max Kanat-Alexander <mkanat@bugzilla.org>

package Bugzilla::Extension::OldBugMove;

use 5.14.0;
use strict;
use warnings;

use base qw(Bugzilla::Extension);
use Bugzilla::Constants;
use Bugzilla::Error;
Expand Down
2 changes: 2 additions & 0 deletions extensions/OldBugMove/lib/Params.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

package Bugzilla::Extension::OldBugMove::Params;

use 5.14.0;
use strict;
use warnings;

use Bugzilla::Config::Common;

Expand Down
5 changes: 2 additions & 3 deletions extensions/Push/template/en/default/setup/strings.txt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.

use strict;
use warnings;
use 5.14.0;
# This file is loaded inside a Safe compartment, so keep it as plain package
# data: do not add strict/warnings pragmas or lexical %strings declarations.

%strings = (
feature_push_amqp => 'Push: AMQP Support',
Expand Down
3 changes: 3 additions & 0 deletions extensions/ShadowBugs/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.

package Bugzilla::Extension::ShadowBugs;

use 5.14.0;
use strict;
use warnings;

use constant NAME => 'ShadowBugs';
use constant REQUIRED_MODULES => [];
Expand Down
2 changes: 2 additions & 0 deletions extensions/ShadowBugs/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

package Bugzilla::Extension::ShadowBugs;

use 5.14.0;
use strict;
use warnings;

use base qw(Bugzilla::Extension);

Expand Down
9 changes: 7 additions & 2 deletions t/Support/Files.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ our @extensions = grep { $_ ne 'extensions/create.pl' && !-e "$_/disabled" }
glob('extensions/*');

foreach my $extension (@extensions) {
find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$|\.pl$/; },
$extension);
find(
sub {
return if $File::Find::name =~ m{^extensions/.+/template/};
push(@files, $File::Find::name) if $_ =~ /\.pm$|\.pl$/;
},
$extension
);
}

our @test_files = glob('t/*.t xt/*/*.t');
Expand Down
3 changes: 3 additions & 0 deletions template/en/default/filterexceptions.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
# and so do not need to be added here. Doing so will cause warnings.
# See 008filter.t for more details.
#
# This file is loaded by 008filter.t with do(), so keep it as plain package
# data and avoid strict/warnings pragmas or lexical variable declarations.
#
# Comments - [%#...
# Directives - [% IF|ELSE|UNLESS|FOREACH...
# Assignments - [% foo = ...
Expand Down
3 changes: 3 additions & 0 deletions template/en/default/setup/strings.txt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# installation code to display strings before Template-Toolkit can safely
# be loaded.
#
# This file is loaded inside a Safe compartment, so keep it as plain package
# data: do not add strict/warnings pragmas or lexical %strings declarations.
#
# Each string supports a very simple substitution system, where you can
# have variables named like ##this## and they'll be replaced by the string
# variable with that name.
Expand Down
Loading