Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47463a8

Browse files
committed
Remove 'for' loop perltidy argument, and move args to perltidyrc file.
Backpatch to 9.2. Per suggestion from Noah Misch
1 parent 0acd978 commit 47463a8

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/tools/pgindent/README

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,8 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
4646

4747
9) Indent the Perl code:
4848

49-
find . -name \*.pl -o -name \*.pm | xargs perltidy --noprofile \
50-
--backup-and-modify-in-place --opening-brace-on-new-line \
51-
--vertical-tightness=2 --vertical-tightness-closing=2 \
52-
--nospace-after-keyword=for --nospace-for-semicolon \
53-
--add-whitespace --delete-old-whitespace --paren-tightness=2 \
54-
--keep-old-blank-lines=2 --maximum-line-length=78 \
55-
--entab-leading-whitespace=4 --output-line-ending=unix
49+
find . -name \*.pl -o -name \*.pm |
50+
xargs perltidy --profile=src/tools/pgindent/perltidyrc
5651

5752
---------------------------------------------------------------------------
5853

src/tools/pgindent/perltidyrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--add-whitespace
2+
--backup-and-modify-in-place
3+
--delete-old-whitespace
4+
--entab-leading-whitespace=4
5+
--keep-old-blank-lines=2
6+
--maximum-line-length=78
7+
--nospace-for-semicolon
8+
--opening-brace-on-new-line
9+
--output-line-ending=unix
10+
--paren-tightness=2
11+
--vertical-tightness=2
12+
--vertical-tightness-closing=2

0 commit comments

Comments
 (0)