summaryrefslogtreecommitdiff
path: root/.perltidyrc
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2021-01-02 11:17:08 -0500
committerBjörn Esser <besser82@fedoraproject.org>2021-02-20 20:28:29 +0100
commit05239fc98a293beba7edb05d93f570c3209dcdd3 (patch)
treec13d8ad50e47530eb377c9e1c2b282f2ec735a32 /.perltidyrc
parentc7bf2cf8e610bb26bece7f3a2bc5b47d7c659c7d (diff)
downloadlibxcrypt-05239fc98a293beba7edb05d93f570c3209dcdd3.tar.gz
libxcrypt-05239fc98a293beba7edb05d93f570c3209dcdd3.tar.bz2
libxcrypt-05239fc98a293beba7edb05d93f570c3209dcdd3.zip
Add a build using Ubuntu 14.04 (Trusty).
This is to validate that our build scripts work with our documented minimum version of Perl (5.14). This is the newest version of Ubuntu on which Travis supports use of perl this old. Contra the documentation, Trusty-based build workers’ default perl is 5.18, not 5.14. Travis doesn’t support use of the `perl: VERSION` build matrix parameter in a `language:c` build, and it doesn’t support use of the `compiler:` parameter in a `language:perl` build. The least terrible kludge I can come up with is to continue using `language:c`, manually download and install the precompiled perl 5.14 binaries that Travis _would_ use for `perl:5.14`, and then manually activate the appropriate perlbrew environment. (We can’t use $PERLBREW_ROOT/etc/bashrc because it’s, well, a bash script, and our build scripts are _sh_ scripts.) There is a pretty strong argument that no one should be using perl < 5.18 anymore: 5.18 is the oldest version with randomized hashes, which are a critical security fix for anyone processing untrusted input with Perl. But the input to all our Perl scripts is our own source or object code, so that’s not an issue for us. In fact, we could go even earlier, since we’re not actually _using_ the Unicode support that motivated my selection of 5.14 as the minimum. Opinions solicited. Since this means we have to have an install script again, also use it to install perltidy and perlcritic when DISTCHECK=1, add configuration files for both tools, and run perlcritic from the distcheck-hook. (This doesn’t *do* anything yet, of course, since there aren’t any Perl scripts yet.) Quibbles with my formatting and linting choices are also solicited.
Diffstat (limited to '.perltidyrc')
-rw-r--r--.perltidyrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/.perltidyrc b/.perltidyrc
new file mode 100644
index 0000000..d0e095b
--- /dev/null
+++ b/.perltidyrc
@@ -0,0 +1,15 @@
+# perltidy configuration
+
+--standard-error-output
+--warning-output
+--character-encoding=utf8
+--converge
+
+--continuation-indentation=4
+
+--cuddled-else
+--noblanks-before-comments
+--noblanks-before-blocks
+--paren-tightness=2 # no spaces inside parens
+--brace-tightness=2 # no spaces inside braces
+--square-bracket-tightness=2 # no spaces inside brackets