💄 Add Perl::Tidy for development

Adapt a .perltidyrc from Mojo, modified for long lines support.
This commit is contained in:
Zak B. Elep 2018-08-04 19:46:34 +08:00
parent c3e4a229b3
commit b4032ceb63
2 changed files with 17 additions and 0 deletions

13
.perltidyrc Normal file
View file

@ -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

View file

@ -1,2 +1,6 @@
requires 'Devel::PatchPerl'; requires 'Devel::PatchPerl';
requires 'YAML::XS'; requires 'YAML::XS';
on 'develop' => sub {
requires 'Perl::Tidy';
};