From abe9b579f25120898b714d4b73343918169d48ac Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 2 Oct 2018 00:24:25 -0400 Subject: no bug - adopt mojolicious code formatting guidelines (#784) @kyoshino likes 2-char indent for all the frontend. Mojolicious seems to use 2-space too. Let's just adopt their perltidyrc. Included in this is a script (in scripts/) that will modify files according to these rules. --- .perltidyrc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to '.perltidyrc') diff --git a/.perltidyrc b/.perltidyrc index 25f9ef626..f15324190 100644 --- a/.perltidyrc +++ b/.perltidyrc @@ -1,3 +1,13 @@ ---perl-best-practices ---brace-vertical-tightness=0 # always break after { ---maximum-line-length=120 # max line length is 120 +-pbp # Start with Perl Best Practices +-w # Show all warnings +-iob # Ignore old breakpoints +-l=80 # 80 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 -- cgit v1.2.3-24-g4f1b