From 4cb2fd6677758c08311f8191f722d94d582597e2 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 8 Dec 2017 06:27:39 +0000 Subject: [PATCH] Bug 19782: Add svc and unapi to check for QA Test plan: 0) Have commit which touches any file in /svc /opac/svc or /opac/unapi, you can use bug 19439 and bug 19496, or just create your own commit 1) Run QA tools on this commit 2) There should be report for this files --- QohA/Files.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QohA/Files.pm b/QohA/Files.pm index 6da6573..227f710 100644 --- a/QohA/Files.pm +++ b/QohA/Files.pm @@ -26,7 +26,7 @@ sub BUILD { my $file; if ( $filepath =~ qr/\.xml$|\.xsl$|\.xslt$/i ) { $file = QohA::File::XML->new(path => $filepath); - } elsif ( $filepath =~ qr/\.pl$|\.pm$|\.t$/i ) { + } elsif ( $filepath =~ qr/\.pl$|\.pm$|\.t$|svc|unapi$/i ) { $file = QohA::File::Perl->new(path => $filepath); } elsif ( $filepath =~ qr/\.tt$|\.inc$/i ) { $file = QohA::File::Template->new(path => $filepath); -- 2.1.4