Koha/misc/cronjobs
Julian Maurice b168f4a2e9 Bug 21395: Make perlcritic happy
This patch adds a .perlcriticrc (copied from qa-test-tools) and fixes
almost all perlcrictic violations according to this .perlcriticrc
The remaining violations are silenced out by appending a '## no critic'
to the offending lines. They can still be seen by using the --force
option of perlcritic
This patch also modify t/00-testcritic.t to check all Perl files using
the new .perlcriticrc.
I'm not sure if this test script is still useful as it is now equivalent
to `perlcritic --quiet .` and it looks like it is much slower
(approximatively 5 times slower on my machine)

Test plan:
1. Run `perlcritic --quiet .` from the root directory. It should output
   nothing
2. Run `perlcritic --quiet --force .`. It should output 7 errors (6
   StringyEval, 1 BarewordFileHandles)
3. Run `TEST_QA=1 prove t/00-testcritic.t`
4. Read the patch. Check that all changes make sense and do not
   introduce undesired behaviour

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-06-29 12:37:02 +02:00
..
holds Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
rss Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
social_data
thirdparty Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
advance_notices.pl
archive_purchase_suggestions.pl Bug 22784: Add a cronjob to archive suggestions given age or status criteria 2020-04-14 16:22:02 +01:00
automatic_item_modification_by_age.pl Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action logs 2020-04-17 09:17:52 +01:00
automatic_renewals.pl Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
cart_to_shelf.pl
check-url-quick.pl
check-url.pl
cleanup_database.pl Bug 24114: (QA follow-up) Fix counts for lock, anonymize and delete 2020-02-24 13:17:39 +00:00
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
create_koc_db.pl
crontab.example Bug 24526: Add the confirm flag to the cronjob files 2020-02-10 10:13:35 +00:00
delete_items.pl Bug 23463: Remove DelItemCheck and ItemSafeToDelete 2020-03-23 09:26:31 +00:00
delete_patrons.pl Bug 25157: Silent patron deletion cmd line script 2020-05-11 09:57:07 +01:00
delete_records_via_leader.pl Bug 24324: Resolve error with delete_records_via_leader.pl 2020-03-24 08:03:30 +00:00
edi_cron.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
fines.pl Bug 23571: (QA follow-up) Add missing newline in warning 2020-04-14 16:59:15 +01:00
gather_print_notices.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
import_webservice_batch.pl
longoverdue.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
membership_expiry.pl
merge_authorities.pl
notice_unprocessed_suggestions.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
overdue_notices.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
patron_emailer.pl
printoverdues.sh
process_message_queue.pl Bug 25097: Add option to message_queue to allow for only specific sending notices 2020-06-24 15:15:41 +02:00
purge_suggestions.pl
reconcile_balances.pl Bug 24266: (alternate patch) Only use defined borrowernumbers in reconcile_balances.pl cron 2020-04-14 08:21:31 +01:00
remove_temporary_edifiles.pl
runreport.pl
serialsUpdate.pl
share_usage_with_koha_community.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sitemap.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
staticfines.pl Bug 22589: Remove C4::Overdues::BorType 2020-03-24 10:57:55 +00:00
stockrotation.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
update_patrons_category.pl
update_totalissues.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00