Last active
March 16, 2023 09:17
-
-
Save rwp0/a28591d7314c1c7e1296cf8fb9b6e026 to your computer and use it in GitHub Desktop.
My Perl Coding Style with Perl-Tidy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Indent | |
--indent-columns=2 # Short: -i, Default: 4 | |
# Output | |
--standard-output # Short: -st, Default: --nostandard-output (Short: -nst) | |
# Functions | |
--space-function-paren # -sfp | |
--space-prototype-paren=2 # -spp | |
# Tokens | |
--want-left-space='-> ,' # -wls | |
--want-right-space='->' # -wrs | |
--opening-token-right # -otr | |
# Abbreviation for below: | |
# --opening-paren-right (-opr) | |
# --opening-hash-brace-right (-ohbr) | |
# --opening-square-bracket-right (-osbr) | |
# Commas | |
--want-trailing-commas=1 # -wtc=s | |
--add-trailing-commas # -atc | |
# https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment