aboutsummaryrefslogtreecommitdiff
path: root/.perltidyrc
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-03-31 10:40:45 +0200
committerJonas Smedegaard <dr@jones.dk>2024-03-31 10:48:07 +0200
commita36907e4a46b6dedda2e3df708ae79a6b9f348e7 (patch)
tree35babd6f83c56a8ad979fc41dbccc110cc23ff86 /.perltidyrc
parent2b5f8d156053634fa845ad06b986fc73514e9b5d (diff)
add make target tidy-perl; isolate make target tidy-bibtex
Diffstat (limited to '.perltidyrc')
-rw-r--r--.perltidyrc21
1 files changed, 21 insertions, 0 deletions
diff --git a/.perltidyrc b/.perltidyrc
new file mode 100644
index 0000000..2e08554
--- /dev/null
+++ b/.perltidyrc
@@ -0,0 +1,21 @@
+# use best practices, except use of stdout
+--perl-best-practices
+--no-standard-output
+--no-standard-error-output
+
+# use TAB for lead indentation
+--tabs
+--entab-leading-whitespace=4
+-nola
+
+# indent only already indented comments
+--indent-spaced-block-comments
+
+# put brace on new line for named subroutines
+--opening-sub-brace-on-new-line
+
+# preserve horisontally styled lists
+--break-at-old-comma-breakpoints
+
+# overwrite (we use CVS), and leave backup only on error
+--backup-file-extension=/~