format code with perltidy
This commit is contained in:
parent
bba8922243
commit
4ba82a41cf
3 changed files with 1075 additions and 591 deletions
15
.perltidyrc
Normal file
15
.perltidyrc
Normal file
|
@ -0,0 +1,15 @@
|
|||
# mmdebstrap is a tool focused on Debian and derivatives (it relies on apt
|
||||
# after all). Thus, we use a perl style used in other Debian Perl code. The
|
||||
# following options are used in Lintian and devscripts
|
||||
|
||||
--break-before-all-operators
|
||||
--noblanks-before-comments
|
||||
--cuddled-else
|
||||
--maximum-line-length=79
|
||||
--paren-tightness=2
|
||||
--square-bracket-tightness=2
|
||||
--space-for-semicolon
|
||||
--opening-brace-always-on-right
|
||||
--stack-opening-tokens
|
||||
--stack-closing-tokens
|
||||
--format-skipping
|
10
coverage.sh
10
coverage.sh
|
@ -2,6 +2,16 @@
|
|||
|
||||
set -eu
|
||||
|
||||
perltidy < mmdebstrap > mmdebstrap.tdy
|
||||
ret=0
|
||||
diff -u mmdebstrap mmdebstrap.tdy || ret=$?
|
||||
if [ "$ret" -ne 0 ]; then
|
||||
echo "perltidy failed" >&2
|
||||
rm mmdebstrap.tdy
|
||||
exit 1
|
||||
fi
|
||||
rm mmdebstrap.tdy
|
||||
|
||||
mirrordir="./shared/cache/debian"
|
||||
|
||||
if [ ! -e "$mirrordir" ]; then
|
||||
|
|
1181
mmdebstrap
1181
mmdebstrap
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue