From b4032ceb63f2ab621c36ebe854261f605633c9ec Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Sat, 4 Aug 2018 19:46:34 +0800 Subject: [PATCH] :lipstick: Add Perl::Tidy for development Adapt a .perltidyrc from Mojo, modified for long lines support. --- .perltidyrc | 13 +++++++++++++ cpanfile | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 .perltidyrc diff --git a/.perltidyrc b/.perltidyrc new file mode 100644 index 0000000..2f4c4b2 --- /dev/null +++ b/.perltidyrc @@ -0,0 +1,13 @@ +-pbp # Start with Perl Best Practices +-w # Show all warnings +-iob # Ignore old breakpoints +-l=130 # 130 characters per line +-mbl=2 # No more than 2 blank lines +-i=2 # Indentation is 2 columns +-ci=2 # Continuation indentation is 2 columns +-vt=0 # Less vertical tightness +-pt=2 # High parenthesis tightness +-bt=2 # High brace tightness +-sbt=2 # High square bracket tightness +-wn # Weld nested containers +-isbc # Don't indent comments without leading space diff --git a/cpanfile b/cpanfile index 59079e9..7de3599 100644 --- a/cpanfile +++ b/cpanfile @@ -1,2 +1,6 @@ requires 'Devel::PatchPerl'; requires 'YAML::XS'; + +on 'develop' => sub { + requires 'Perl::Tidy'; +};