From 36bd4bd7b4c98504dfb5ed179a9b981ef979187b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Sep 2025 10:08:10 +0200 Subject: [PATCH] Bug 40858: Rename context 'all' with 'core' All was not returning all the files present in the git index, but all Koha core files. Let's rename it with 'core' to remove ambiguity. Signed-off-by: Lucas Gass Signed-off-by: Paul Derscheid Signed-off-by: Lucas Gass --- Koha/Devel/Files.pm | 10 +++++----- xt/find-missing-new-lines-at-the-end-of-file.t | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Koha/Devel/Files.pm b/Koha/Devel/Files.pm index f644641404..0fc5b2ec25 100644 --- a/Koha/Devel/Files.pm +++ b/Koha/Devel/Files.pm @@ -53,7 +53,7 @@ my $exceptions = { misc/cronjobs/build_browser_and_cloud.pl ) ], - all => [], + core => [], }, js => { tidy => [ @@ -72,7 +72,7 @@ my $exceptions = { koha-tmpl/opac-tmpl/bootstrap/js/Gettext.js ) ], - all => [ + core => [ qw( koha-tmpl/intranet-tmpl/lib koha-tmpl/opac-tmpl/lib @@ -88,13 +88,13 @@ my $exceptions = { ) ], codespell => [], - all => [], + core => [], }, yml => { - all => [], + core => [], }, css => { - all => [ + core => [ qw( koha-tmpl/intranet-tmpl/lib koha-tmpl/opac-tmpl/lib diff --git a/xt/find-missing-new-lines-at-the-end-of-file.t b/xt/find-missing-new-lines-at-the-end-of-file.t index 591269c790..80977d8479 100755 --- a/xt/find-missing-new-lines-at-the-end-of-file.t +++ b/xt/find-missing-new-lines-at-the-end-of-file.t @@ -6,7 +6,7 @@ use Test::NoWarnings; use Koha::Devel::Files; -my $dev_files = Koha::Devel::Files->new( { context => 'all' } ); +my $dev_files = Koha::Devel::Files->new( { context => 'core' } ); my @files; push @files, $dev_files->ls_perl_files; push @files, $dev_files->ls_tt_files;