Bug 38365: Add test_valuebuilder_popup.tt to the exception list

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2026-03-06 10:37:28 +01:00
parent 8b17f6158d
commit 62f5411fb5
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 2 additions and 2 deletions

View File

@ -89,6 +89,7 @@ my $exceptions = {
], ],
codespell => [], codespell => [],
core => [], core => [],
nonce => [qw(t/lib/plugins/Koha/Plugin/TestValuebuilder/test_valuebuilder_popup.tt)],
}, },
yml => { yml => {
core => [], core => [],

View File

@ -25,7 +25,7 @@ use Data::Dumper;
use Koha::Devel::Files; use Koha::Devel::Files;
my $dev_files = Koha::Devel::Files->new; my $dev_files = Koha::Devel::Files->new( { context => 'nonce' } );
my @files = $dev_files->ls_tt_files; my @files = $dev_files->ls_tt_files;
ok( @files > 0, 'We should test something' ); ok( @files > 0, 'We should test something' );
@ -50,7 +50,6 @@ sub catch_missing_nonce {
for my $line (@lines) { for my $line (@lines) {
$line_number++; $line_number++;
if ( $line =~ m{<script} && $line !~ m{<script nonce=} && $line !~ m{src="} ) { if ( $line =~ m{<script} && $line !~ m{<script nonce=} && $line !~ m{src="} ) {
next if $line =~ m{Babeltheque_url_js}; # Exception
push @errors, "$line_number: $line"; push @errors, "$line_number: $line";
} }
if ( $line =~ m{<style} && $line !~ m{<style nonce=} ) { if ( $line =~ m{<style} && $line !~ m{<style nonce=} ) {