mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Remove 'for' loop perltidy argument, and move args to perltidyrc file.
Backpatch to 9.2. Per suggestion from Noah Misch
This commit is contained in:
parent
0acd978259
commit
47463a8098
@ -46,13 +46,8 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
||||
|
||||
9) Indent the Perl code:
|
||||
|
||||
find . -name \*.pl -o -name \*.pm | xargs perltidy --noprofile \
|
||||
--backup-and-modify-in-place --opening-brace-on-new-line \
|
||||
--vertical-tightness=2 --vertical-tightness-closing=2 \
|
||||
--nospace-after-keyword=for --nospace-for-semicolon \
|
||||
--add-whitespace --delete-old-whitespace --paren-tightness=2 \
|
||||
--keep-old-blank-lines=2 --maximum-line-length=78 \
|
||||
--entab-leading-whitespace=4 --output-line-ending=unix
|
||||
find . -name \*.pl -o -name \*.pm |
|
||||
xargs perltidy --profile=src/tools/pgindent/perltidyrc
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
|
12
src/tools/pgindent/perltidyrc
Normal file
12
src/tools/pgindent/perltidyrc
Normal file
@ -0,0 +1,12 @@
|
||||
--add-whitespace
|
||||
--backup-and-modify-in-place
|
||||
--delete-old-whitespace
|
||||
--entab-leading-whitespace=4
|
||||
--keep-old-blank-lines=2
|
||||
--maximum-line-length=78
|
||||
--nospace-for-semicolon
|
||||
--opening-brace-on-new-line
|
||||
--output-line-ending=unix
|
||||
--paren-tightness=2
|
||||
--vertical-tightness=2
|
||||
--vertical-tightness-closing=2
|
Loading…
x
Reference in New Issue
Block a user