[Koha-devel] QA Tools

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Thu Aug 3 09:50:26 CEST 2017


Hi Jonathan,

Got this warning from qa tools:
POD coverage was greater before, try perl -MPod::Coverage=PackageName -e666

Looking at the code in qa tools, I come across:

            } elsif ( $before->{rating} > $after->{rating} ) {
                # Not sure we can reach this
                @diff = ('POD coverage was greater before, try perl -MPod::Coverage=PackageName -e666');

When I removed a routine from C4::Biblio, this happens:
Before
C4::Biblio has a Pod::Coverage rating of 0.96078431372549
After
C4::Biblio has a Pod::Coverage rating of 0.96

If we have N subroutines and 2 without POD and a score of 2/N, and I remove one routine, we will now have 2 / N - 1.
This means that the before > after test does not work here. Raises a false negative.

Marcel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20170803/ff8ced83/attachment.html>


More information about the Koha-devel mailing list