Koha is very poor in test coverage. Add a script that will allow the option of using perlcritic to run static analysis on the perlcode. At present most code will fail these tests but using Test::Perl::Critic may encourage use of better practices in the source, Important that running of the tests is purely optional and does not add dependencies on the end user so script is conditional on setting an environment variable and the requisite module being installed.
This bug is mentioned in: Bug 5485: Add script to run Test::Perl::Critic http://lists.koha-community.org/pipermail/koha-patches/2010-December/013244.html
The script works well and all tests were successful !
Created attachment 3302 [details] [review] Signed-off patch
Pushed, please test and mark resolved I will set Jenkins to begin running these, and maybe add a dir at a time and encourage people to fix the tests that will udoubtedly fail
This bug is mentioned in: Bug 5485: Add script to run Test::Perl::Critic http://lists.koha-community.org/pipermail/koha-patches/2011-March/014055.html