From 423184cc29ad70e0bfe92d0657f4035d7055e263 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 21 Mar 2021 13:04:01 +0000 Subject: [PATCH] Add perl-tidy instructions! --- README.md | 6 ++++-- lib/Pear/LocalLoop/Command/codepoint_open.pm | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2dc48dc..7ffd1d4 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ This server app. provides: - ```shell script ./script/pear-local_loop minion job \ --enqueue 'csv_postcode_import' \ - --args '[ "⟨ path to CSV ⟩ ]' + --args '[ "⟨ path to CSV ⟩" ]' ``` 1. set up postcodes: 1. import [Code-Point Open](https://www.ordnancesurvey.co.uk/business-government/products/code-point-open): @@ -137,7 +137,9 @@ Test files are found in the `t/` directory. Run `for f in ./lib/**/*.pm; do perltidy -b $f; done` to format all Perl files with [Perl-Tidy](https://metacpan.org/release/Perl-Tidy) (there is no built-in -option to format files recursively). +option to format files recursively). This will produce backup files with `.bak` +extensions, so run `rm -r *.bak` to clean up your local copy if you are happy +with the formatted files. Run `perlcritic lib` to lint all Perl files with [Perl-Critic](https://metacpan.org/release/Perl-Critic). diff --git a/lib/Pear/LocalLoop/Command/codepoint_open.pm b/lib/Pear/LocalLoop/Command/codepoint_open.pm index d0faeb9..adcaf0e 100644 --- a/lib/Pear/LocalLoop/Command/codepoint_open.pm +++ b/lib/Pear/LocalLoop/Command/codepoint_open.pm @@ -30,8 +30,6 @@ sub run { die; } } - - # my $cpo = Geo::UK::Postcode::CodePointOpen->new( path => $output_dir );