This omnibus is created to have a link to all patches related to code improvement and cleaning (perltidy, use Modern::Perl, clean templates,...)
*** Bug 9037 has been marked as a duplicate of this bug. ***
Created attachment 13322 [details] [review] Bug 7119 - general code-cleaning, tidy/whitespace omnibus
Comment on attachment 13322 [details] [review] Bug 7119 - general code-cleaning, tidy/whitespace omnibus >From 65ce9336639acdf20110549c1216f8b084f27858 Mon Sep 17 00:00:00 2001 >From: Christopher Nighswonger <cnighswonger@cnighswonger-dt.(none)> >Date: Thu, 8 Nov 2012 15:29:48 -0500 >Subject: [PATCH] Bug 7119 - general code-cleaning, tidy/whitespace omnibus > >--- > t/00-load.t | 34 +++++++++++++++++----------------- > 1 file changed, 17 insertions(+), 17 deletions(-) > >diff --git a/t/00-load.t b/t/00-load.t >index afff47d..3cf7a24 100644 >--- a/t/00-load.t >+++ b/t/00-load.t >@@ -12,23 +12,23 @@ find({ > no_chdir => 1, > wanted => sub { > my $m = $_; >- return unless $m =~ s/[.]pm$//; >- $m =~ s{^.*/C4/}{C4/}; >- $m =~ s{/}{::}g; >- return if $m =~ /Auth_with_ldap/; # Dont test this, it will fail on use >- return if $m =~ /Cache/; # Cache modules are a WIP, add the tests back when we are using them more >- return if $m =~ /SIP/; # SIP modules will not load clean >- return if $m =~ /C4::VirtualShelves$/; # Requires a DB >- return if $m =~ /C4::Auth$/; # DB >- return if $m =~ /C4::Tags$/; # DB >- return if $m =~ /C4::Service/; # DB >- return if $m =~ /C4::Auth_with_cas/; # DB >- return if $m =~ /C4::BackgroundJob/; # DB >- return if $m =~ /C4::UploadedFile/; # DB >- return if $m =~ /C4::Record/; # DB >- return if $m =~ /C4::Reports::Guided/; # DB >- return if $m =~ /C4::Serials/; # DB >- return if $m =~ /C4::VirtualShelves::Page/; # DB >+ return unless $m =~ s/[.]pm$//; >+ $m =~ s{^.*/C4/}{C4/}; >+ $m =~ s{/}{::}g; >+ return if $m =~ /Auth_with_ldap/; # Dont test this, it will fail on use >+ return if $m =~ /Cache/; # Cache modules are a WIP, add the tests back when we are using them more >+ return if $m =~ /SIP/; # SIP modules will not load clean >+ return if $m =~ /C4::VirtualShelves$/; # Requires a DB >+ return if $m =~ /C4::Auth$/; # DB >+ return if $m =~ /C4::Tags$/; # DB >+ return if $m =~ /C4::Service/; # DB >+ return if $m =~ /C4::Auth_with_cas/; # DB >+ return if $m =~ /C4::BackgroundJob/; # DB >+ return if $m =~ /C4::UploadedFile/; # DB >+ return if $m =~ /C4::Record/; # DB >+ return if $m =~ /C4::Reports::Guided/; # DB >+ return if $m =~ /C4::Serials/; # DB >+ return if $m =~ /C4::VirtualShelves::Page/; # DB > return if $m =~ /C4::Members::Statistics/; # DB > use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'"); > }, >-- >1.7.9.5
Created attachment 13323 [details] [review] Bug 7119 - general code-cleaning, tidy/whitespace omnibus
Created attachment 13333 [details] [review] Bug 7119 - general code-cleaning, tidy/whitespace omnibus Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Upping severity since the first patch is required for several critical fixes. After pushing I will downgrade this back to enhancement.
QA comment for http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13333 : * passes koha-qa.pl * 17:40 ~/koha.dev/koha-community (new/bug_7119 $%)$ prove t/00-load.t t/00-load.t .. ok All tests successful. Files=1, Tests=142, 2 wallclock secs ( 0.08 usr 0.01 sys + 1.97 cusr 0.12 csys = 2.18 CPU) Result: PASS passed QA
Created attachment 13399 [details] [review] Bug 7119 - general code-cleaning, tidy/whitespace omnibus Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This patch has been pushed to master.
Patch pushed to branch 3.10.x
Released in 3.10.0