Fix perltidy conf

This commit is contained in:
Xavier Guimard 2019-02-07 09:19:36 +01:00
parent 9cfef329ee
commit 2532970b33
2 changed files with 19 additions and 1 deletions

18
.perltidyrc Normal file
View File

@ -0,0 +1,18 @@
# -*- conf -*-
#
# Default options for perltidy for proper Perl code reformatting.
#
# This file is based on the one from the rra-c-util package,
# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
--nobreak-before-all-operators
--blanks-before-comments
--nocuddled-else
--maximum-line-length=79
--paren-tightness=1
--square-bracket-tightness=1
--space-for-semicolon
--noopening-brace-on-new-line
--stack-opening-tokens
--nostack-closing-tokens
--format-skipping

View File

@ -1098,7 +1098,7 @@ test-diff:
done
tidy: clean
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.fcgi' -or -name '*.t' \) -print -exec perltidy -b {} \;
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.fcgi' -or -name '*.t' \) -print -exec perltidy -se -b {} \;
find lemon*/ -name '*.bak' -delete
$(MAKE) json