mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
Just as we use pgindent to validate that our c files conform to postgres coding standards, we also run pgperltidy to do the same for perl files. We only run it on our own code in contrib/pg_tde/ This doesn't actually run pgperltidy as we need to inject some options in a way that didn't seem possible in that script. Instead it does the same thing with some slight changes. We also bump the ubuntu version for this google actions job to the newest LTS as the older ubuntu version seems to have a version of perltidy that doesn't support the options used by pgperltidy.
9 lines
237 B
Bash
Executable File
9 lines
237 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR="$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)"
|
|
cd "$SCRIPT_DIR/../"
|
|
|
|
source src/tools/perlcheck/find_perl_files
|
|
|
|
find_perl_files contrib/pg_tde/ | xargs perltidy "$@" --profile=src/tools/pgindent/perltidyrc
|