[Koha-bugs] [Bug 9153] New: Problem with config file for qa-test-tools

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 27 16:14:26 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9153

            Bug ID: 9153
           Summary: Problem with config file for qa-test-tools
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: magnus at enger.priv.no

The README for qa-test-tools says:

2/ copy perlcriticrc file to your home dir (important!)
    $ cp /path/to/your/koha-qa-tools/perlcriticrc ~/

And koha-qa.pl checks for the existence of this file:

my $pc_rc = File::HomeDir->my_home . '/perlcriticrc';
die "your ~/perlcriticrc file is missing..." unless  ( -e  $pc_rc )

However, after copying the rc file as described in the README, I get errors
complaining about "missing strictures before code", even though I am using "use
Modern::Perl". After renaming ~/perlcriticrc to ~/.perlcriticrc those errors go
away. So it looks like the script is picking up ~/.perlcriticrc but not
~/perlcriticrc

(Side note: Would it be better to recommend linking koha-qa-tools/perlcriticrc
to ~/.perlcriticrc, so that any future changes to koha-qa-tools/perlcriticrc
takes effect immediately, without the user having to copy the rc file again?)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list