diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-10-02 06:24:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 06:24:25 +0200 |
commit | abe9b579f25120898b714d4b73343918169d48ac (patch) | |
tree | ad5c1129e37a58e5f14c1e56d0376092f827268b /.perltidyrc | |
parent | 3f104aa43d746c602b179564c96fce0d4d682886 (diff) | |
download | bugzilla-abe9b579f25120898b714d4b73343918169d48ac.tar.gz bugzilla-abe9b579f25120898b714d4b73343918169d48ac.tar.xz |
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.
Diffstat (limited to '.perltidyrc')
-rw-r--r-- | .perltidyrc | 16 |
1 files changed, 13 insertions, 3 deletions
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 |