]> git.koha-community.org Git - koha.git/commit
Bug 15258: Prevent unused declared variables
authorFrédéric Demians <f.demians@tamil.fr>
Thu, 26 Nov 2015 06:30:42 +0000 (07:30 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 31 Dec 2015 13:32:53 +0000 (14:32 +0100)
commitd614dc78aa45ce2052047420a7f670434ca0bfc0
tree3a5e09562332f80add814ea2891e8576b0df7d17
parent1dcb57f84e8fa84a80f53be2bbcc0078d232eaed
Bug 15258: Prevent unused declared variables

Add a perlcritic rule to 00-perlcritic.t to prevent unused declared
variable.

TO TEST:

- Apply the 1st patch (unit test)
- Run the UT:
  prove -v t/00-testcritic.t
- Note that several Perl script fail
- Apply the 2nd patch
- Run the UT, and confirm it passes.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
All tests pass successful.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
(cherry picked from commit c7ec79b8390817100b677530b88d1d4d02986b98)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
t/00-testcritic.t
t/perlcriticrc