1*f2a19305Safresh1# -*- conf -*-
2*f2a19305Safresh1#
3*f2a19305Safresh1# Default options for perltidy for proper Perl code reformatting.
4*f2a19305Safresh1#
5*f2a19305Safresh1# The canonical version of this file is maintained in the rra-c-util package,
6*f2a19305Safresh1# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
7*f2a19305Safresh1#
8*f2a19305Safresh1# Written by Russ Allbery <eagle@eyrie.org>
9*f2a19305Safresh1# Copyright 2021-2022 Russ Allbery <eagle@eyrie.org>
10*f2a19305Safresh1# Copyright 2012-2013
11*f2a19305Safresh1#     The Board of Trustees of the Leland Stanford Junior University
12*f2a19305Safresh1#
13*f2a19305Safresh1# Copying and distribution of this file, with or without modification, are
14*f2a19305Safresh1# permitted in any medium without royalty provided the copyright notice and
15*f2a19305Safresh1# this notice are preserved.  This file is offered as-is, without any
16*f2a19305Safresh1# warranty.
17*f2a19305Safresh1#
18*f2a19305Safresh1# SPDX-License-Identifier: FSFAP
19*f2a19305Safresh1
20*f2a19305Safresh1-bbao           # put line breaks before any operator
21*f2a19305Safresh1-nbbc           # don't force blank lines before comments (bad for else blocks)
22*f2a19305Safresh1-boc            # do not re-break lists, since perltidy is awful at this
23*f2a19305Safresh1-ce             # cuddle braces around else
24*f2a19305Safresh1-l=79           # usually use 78, but don't want 79-long lines reformatted
25*f2a19305Safresh1-nlop           # disable vertical alignment of logical and ternary expressions
26*f2a19305Safresh1-pt=2           # don't add extra whitespace around parentheses
27*f2a19305Safresh1-sbt=2          # ...or square brackets
28*f2a19305Safresh1-nsfs           # no space before semicolon in for (not that I use this form)
29*f2a19305Safresh1-nvc            # disable vertical alignment of = and similar symbols
30*f2a19305Safresh1-xci            # improve indentation of nested structures
31