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)
committerJesse Weaver <jweaver@bywatersolutions.com>
Thu, 31 Dec 2015 00:24:30 +0000 (17:24 -0700)
commitc7ec79b8390817100b677530b88d1d4d02986b98
tree16c16df5c8d12dc4ccc43ebec342895669c31307
parentff9d241239c6eba425755ca2bbde9c31203db151
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>
t/00-testcritic.t
t/perlcriticrc