Bugzilla – Attachment 181983 Details for
Bug 39325
Run codespell successfully on the whole codebase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39325: Skip codespell check for bullseye
Bug-39325-Skip-codespell-check-for-bullseye.patch (text/plain), 1.65 KB, created by
Jonathan Druart
on 2025-05-06 14:43:01 UTC
(
hide
)
Description:
Bug 39325: Skip codespell check for bullseye
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-05-06 14:43:01 UTC
Size:
1.65 KB
patch
obsolete
>From 375a098a7a7f900fcaab1ee656f4ca42818d7b12 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 May 2025 16:41:45 +0200 >Subject: [PATCH] Bug 39325: Skip codespell check for bullseye > >bullseye has 2.0.0-1 >bookworm has 2.2.2-1 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > xt/author/codespell.t | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/xt/author/codespell.t b/xt/author/codespell.t >index 04807210573..781d1acd974 100755 >--- a/xt/author/codespell.t >+++ b/xt/author/codespell.t >@@ -3,10 +3,16 @@ use Modern::Perl; > use Test::PerlTidy; > use Test::More; > >+my $codespell_version = qx{codespell --version}; >+chomp $codespell_version; >+$codespell_version =~ s/-.*$//; >+if ( ( $codespell_version =~ s/\.//gr ) < 220 ) { # if codespell < 2.2.0 >+ plan skip_all => "codespell version $codespell_version too low, need at least 2.2.0"; >+} > my @files; > push @files, > qx{git ls-files '*.pl' '*.PL' '*.pm' '*.t' ':(exclude)installer/data/mysql/updatedatabase.pl' ':(exclude)installer/data/mysql/update22to30.pl' ':(exclude)installer/data/mysql/db_revs/241200035.pl' ':(exclude)misc/cronjobs/build_browser_and_cloud.pl'}; >-push @files, qx{git ls-files svc opac/svc}; # Files without extension >+push @files, qx{git ls-files svc opac/svc}; # Files without extension > push @files, qx{git ls-files '*.tt' '*.inc'}; > push @files, > qx{git ls-files '*.js' '*.ts' '*.vue' ':(exclude)koha-tmpl/intranet-tmpl/lib' ':(exclude)koha-tmpl/intranet-tmpl/js/Gettext.js' ':(exclude)koha-tmpl/opac-tmpl/lib' ':(exclude)koha-tmpl/opac-tmpl/bootstrap/js/Gettext.js'}; >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39325
:
179269
|
179270
|
179271
|
179272
|
179501
|
179502
|
179503
|
179504
|
179505
|
179506
|
179507
|
179508
|
179509
|
179510
|
179511
|
179512
|
179517
|
179518
|
179519
|
179522
|
179525
|
179527
|
179528
|
179529
|
179530
|
179531
|
179532
|
179533
|
179534
|
180137
|
180138
|
180139
|
180140
|
180141
|
180142
|
180143
|
180144
|
180145
|
180146
|
180147
|
180148
|
180149
|
180150
|
181510
|
181511
|
181512
|
181513
|
181514
|
181515
|
181516
|
181517
|
181518
|
181519
|
181520
|
181521
|
181522
|
181523
|
181611
|
181612
|
181613
|
181614
|
181615
|
181616
|
181617
|
181618
|
181619
|
181620
|
181621
|
181637
|
181651
| 181983