$VAR1 = {
- 'sub-alias-list' => [
- 'method fun'
+ 'brace-left-and-indent-list' => [
+ 'if'
+ ],
+ 'opening-anonymous-sub-brace-on-new-line' => [
+ 0,
+ 1
+ ],
+ 'maximum-fields-per-table' => [
+ 0
+ ],
+ 'blank-lines-after-opening-block' => [
+ 2
+ ],
+ 'starting-indentation-level' => [
+ 0
+ ],
+ 'cuddled-else' => [
+ 0,
+ 1
+ ],
+ 'paren-tightness' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'perl-syntax-check-flags' => [
+ '-c -T'
+ ],
+ 'outdent-labels' => [
+ 0,
+ 1
],
'space-function-paren' => [
0,
1
],
+ 'timestamp' => [
+ 0,
+ 1
+ ],
+ 'closing-side-comment-maximum-text' => [
+ 20,
+ 40
+ ],
+ 'ignore-old-breakpoints' => [
+ 0,
+ 1
+ ],
+ 'closing-brace-indentation' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'blank-lines-before-closing-block' => [
+ 1
+ ],
+ 'break-at-old-comma-breakpoints' => [
+ 0,
+ 1
+ ],
'delete-pod' => [
0,
1
],
- 'blank-lines-before-closing-block' => [
- 1
+ 'brace-vertical-tightness-closing' => [
+ 0,
+ 2
],
- 'delete-block-comments' => [
- 0,
- 1
- ],
- 'square-bracket-tightness' => [
- 0,
- 1,
- 2
- ],
- 'closing-side-comment-else-flag' => [
- 0
- ],
- 'one-line-block-nesting' => [
+ 'want-right-space' => [
+ '= .= =~ !~ ? :',
+ '= / *'
+ ],
+ 'keyword-group-blanks-delete' => [
+ 0,
+ 1
+ ],
+ 'indent-columns' => [
+ 0,
+ 2,
+ 4
+ ],
+ 'weld-nested-containers' => [
0,
1
],
- 'indent-closing-brace' => [
- 0,
- 1
- ],
- 'blanks-before-blocks' => [
- 0,
+ 'closing-side-comments' => [
+ 0,
+ 1
+ ],
+ 'cuddled-break-option' => [
1
],
- 'break-before-all-operators' => [
- 0,
- 1
- ],
- 'want-left-space' => [
- '+ -',
- '= .= =~ !~ :'
- ],
- 'closing-side-comments-balanced' => [
- 0,
- 1
- ],
- 'square-bracket-vertical-tightness-closing' => [
- 0,
- 2
- ],
- 'short-concatenation-item-length' => [
- 12,
- 8
- ],
- 'space-terminal-semicolon' => [
+ 'space-prototype-paren' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'stack-opening-hash-brace' => [
0,
1
],
- 'delete-semicolons' => [
- 0,
- 1
- ],
- 'keyword-group-blanks-size' => [
- '5'
- ],
- 'iterations' => [
- 1
- ],
- 'outdent-long-quotes' => [
- 0,
- 1
- ],
- 'block-brace-vertical-tightness' => [
+ 'add-whitespace' => [
+ 0,
+ 1
+ ],
+ 'static-block-comments' => [
+ 0,
+ 1
+ ],
+ 'trim-pod' => [
+ 0,
+ 1
+ ],
+ 'closing-side-comments-balanced' => [
0,
1
],
- 'stack-closing-paren' => [
+ 'long-block-line-count' => [
+ 8
+ ],
+ 'maximum-line-length' => [
0,
- 1
+ 1,
+ 100,
+ 100000,
+ 160,
+ 77,
+ 78,
+ 80
],
- 'default-tabsize' => [
- 8
- ],
- 'closing-side-comments' => [
+ 'backup-and-modify-in-place' => [
+ 0,
+ 1
+ ],
+ 'delete-semicolons' => [
+ 0,
+ 1
+ ],
+ 'outdent-long-comments' => [
0,
1
],
- 'delete-old-whitespace' => [
+ 'check-syntax' => [
+ 0,
+ 1
+ ],
+ 'delete-side-comments' => [
+ 0,
+ 1
+ ],
+ 'hanging-side-comments' => [
0,
1
],
+ 'entab-leading-whitespace' => [
+ 8
+ ],
+ 'one-line-block-semicolons' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'stack-closing-block-brace' => [
+ 0,
+ 1
+ ],
+ 'add-newlines' => [
+ 0,
+ 1
+ ],
'keyword-group-blanks-before' => [
1,
2
],
- 'space-backslash-quote' => [
- 0,
- 1,
- 2
- ],
- 'cuddled-break-option' => [
+ 'indent-spaced-block-comments' => [
+ 0,
+ 1
+ ],
+ 'indent-closing-brace' => [
+ 0,
1
],
- 'closing-square-bracket-indentation' => [
- 0,
- 1,
- 2
- ],
- 'keyword-group-blanks-inside' => [
- 0,
- 1
- ],
+ 'character-encoding' => [
+ 'guess'
+ ],
+ 'opening-sub-brace-on-new-line' => [
+ 0,
+ 1
+ ],
+ 'add-semicolons' => [
+ 0,
+ 1
+ ],
+ 'paren-vertical-tightness-closing' => [
+ 0,
+ 2
+ ],
+ 'nospace-after-keyword' => [
+ 'my for'
+ ],
+ 'delete-old-newlines' => [
+ 0,
+ 1
+ ],
'paren-vertical-tightness' => [
0,
1,
2
],
- 'brace-tightness' => [
+ 'nowant-right-space' => [
+ '+ -',
+ '++ --',
+ '..',
+ '= + - / *',
+ 'A'
+ ],
+ 'format-skipping' => [
0,
- 1,
- 2
+ 1
],
+ 'brace-left-and-indent' => [
+ 0,
+ 1
+ ],
'delete-closing-side-comments' => [
0,
1
],
- 'format' => [
- 'html',
- 'tidy'
- ],
+ 'closing-side-comment-else-flag' => [
+ 0
+ ],
+ 'opening-paren-right' => [
+ 0,
+ 1
+ ],
+ 'outdent-static-block-comments' => [
+ 0,
+ 1
+ ],
+ 'keep-old-blank-lines' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'break-before-all-operators' => [
+ 0,
+ 1
+ ],
'space-for-semicolon' => [
0,
1
],
- 'nospace-after-keyword' => [
- 'my for'
- ],
- 'standard-error-output' => [
- 0,
- 1
- ],
- 'opening-brace-on-new-line' => [
- 0,
- 1
- ],
- 'ignore-side-comment-lengths' => [
- 0,
- 1
- ],
- 'static-block-comments' => [
- 0,
- 1
- ],
- 'square-bracket-vertical-tightness' => [
- 0,
- 1,
- 2
- ],
'want-break-before' => [
' ',
'% + - * / x != == >= <= =~ !~ < > | & = **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x=',
'% + - * / x != == >= <= =~ < > | & **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x=',
'='
],
- 'block-brace-tightness' => [
- 0,
- 1,
- 2
- ],
- 'brace-left-and-indent-list' => [
- 'if'
- ],
- 'closing-side-comment-maximum-text' => [
- 20,
- 40
- ],
- 'entab-leading-whitespace' => [
- 8
- ],
- 'break-at-old-semicolon-breakpoints' => [
- 0,
- 1
- ],
- 'space-keyword-paren' => [
- 0,
- 1
+ 'blank-lines-before-subs' => [
+ 0,
+ 1
+ ],
+ 'one-line-block-nesting' => [
+ 0,
+ 1
+ ],
+ 'space-after-keyword' => [
+ 'push'
],
- 'closing-side-comment-interval' => [
- 2,
- 20,
- 6
- ],
- 'indent-columns' => [
- 0,
- 2,
- 4
- ],
- 'variable-maximum-line-length' => [
+ 'break-after-all-operators' => [
+ 0,
+ 1
+ ],
+ 'opening-square-bracket-right' => [
0,
1
],
- 'add-newlines' => [
- 0,
- 1
- ],
- 'stack-opening-hash-brace' => [
+ 'outdent-long-quotes' => [
+ 0,
+ 1
+ ],
+ 'stack-opening-paren' => [
+ 0,
+ 1
+ ],
+ 'maximum-consecutive-blank-lines' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'stack-closing-hash-brace' => [
0,
1
],
- 'add-whitespace' => [
- 0,
- 1
- ],
- 'stack-closing-square-bracket' => [
- 0,
- 1
- ],
'comma-arrow-breakpoints' => [
1,
5
],
- 'keyword-group-blanks-repeat-count' => [
- 0
+ 'fixed-position-side-comment' => [
+ 40
+ ],
+ 'blank-lines-before-closing-block-list' => [
+ '*'
+ ],
+ 'keyword-group-blanks-inside' => [
+ 0,
+ 1
+ ],
+ 'want-break-after' => [
+ '% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x= . << >> -> && ||'
+ ],
+ 'square-bracket-vertical-tightness-closing' => [
+ 0,
+ 2
+ ],
+ 'square-bracket-tightness' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'break-at-old-method-breakpoints' => [
+ 0,
+ 1
+ ],
+ 'square-bracket-vertical-tightness' => [
+ 0,
+ 1,
+ 2
],
- 'closing-brace-indentation' => [
- 0,
- 1,
- 2
- ],
- 'nowant-right-space' => [
- '+ -',
- '++ --',
- '..',
- '= + - / *',
- 'A'
- ],
- 'delete-side-comments' => [
- 0,
- 1
- ],
- 'long-block-line-count' => [
- 8
- ],
- 'keyword-group-blanks-delete' => [
+ 'default-tabsize' => [
+ 8
+ ],
+ 'ignore-side-comment-lengths' => [
0,
1
],
- 'tight-secret-operators' => [
- 0,
- 1
- ],
+ 'iterations' => [
+ 1
+ ],
+ 'closing-square-bracket-indentation' => [
+ 0,
+ 1,
+ 2
+ ],
'continuation-indentation' => [
0,
2,
4
],
- 'brace-left-and-indent' => [
+ 'nowant-left-space' => [
+ '++ -- ?',
+ '..',
+ '= + - / *',
+ '= / *'
+ ],
+ 'standard-error-output' => [
0,
1
],
- 'line-up-parentheses' => [
- 0,
- 1
- ],
- 'opening-sub-brace-on-new-line' => [
- 0,
- 1
- ],
- 'opening-paren-right' => [
- 0,
- 1
- ],
- 'opening-anonymous-sub-brace-on-new-line' => [
- 0,
- 1
- ],
- 'want-right-space' => [
- '= .= =~ !~ ? :',
- '= / *'
- ],
- 'delete-old-newlines' => [
- 0,
- 1
+ 'blanks-before-blocks' => [
+ 0,
+ 1
+ ],
+ 'closing-paren-indentation' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'format-skipping-end' => [
+ '#>{2,}'
],
- 'stack-closing-hash-brace' => [
+ 'keyword-group-blanks-repeat-count' => [
+ 0
+ ],
+ 'backup-file-extension' => [
+ 'bak',
+ '~'
+ ],
+ 'keyword-group-blanks-after' => [
+ 1,
+ 2
+ ],
+ 'keep-interior-semicolons' => [
0,
1
],
- 'starting-indentation-level' => [
- 0
- ],
- 'backup-and-modify-in-place' => [
- 0,
- 1
- ],
- 'perl-syntax-check-flags' => [
- '-c -T'
- ],
- 'keep-interior-semicolons' => [
+ 'keyword-group-blanks-size' => [
+ '5'
+ ],
+ 'space-terminal-semicolon' => [
0,
1
],
- 'stack-opening-square-bracket' => [
- 0,
- 1
- ],
- 'outdent-long-comments' => [
- 0,
- 1
- ],
- 'blank-lines-after-opening-block' => [
- 2
- ],
- 'add-semicolons' => [
- 0,
- 1
- ],
+ 'outdent-keywords' => [
+ 0,
+ 1
+ ],
'indent-block-comments' => [
0,
1
],
- 'break-after-all-operators' => [
- 0,
- 1
- ],
- 'character-encoding' => [
- 'guess'
- ],
- 'timestamp' => [
+ 'blank-lines-before-packages' => [
+ 0,
+ 1
+ ],
+ 'recombine' => [
0,
1
],
- 'fixed-position-side-comment' => [
- 40
- ],
- 'one-line-block-semicolons' => [
- 0,
- 1,
- 2
- ],
- 'fuzzy-line-length' => [
- 0,
- 1
- ],
- 'brace-vertical-tightness-closing' => [
- 0,
- 2
- ],
- 'blank-lines-before-subs' => [
- 0,
- 1
- ],
+ 'blank-lines-after-opening-block-list' => [
+ '*'
+ ],
+ 'stack-opening-square-bracket' => [
+ 0,
+ 1
+ ],
'cuddled-block-list' => [
'map,sort,grep',
'sort,map,grep'
],
- 'opening-brace-always-on-right' => [
- 0,
- 1
- ],
- 'indent-spaced-block-comments' => [
- 0,
- 1
- ],
- 'recombine' => [
- 0,
- 1
- ],
- 'backup-file-extension' => [
- 'bak',
- '~'
+ 'space-backslash-quote' => [
+ 0,
+ 1,
+ 2
],
- 'check-syntax' => [
- 0,
- 1
- ],
- 'ignore-old-breakpoints' => [
- 0,
- 1
- ],
- 'static-side-comments' => [
- 0,
- 1
- ],
- 'minimum-space-to-comment' => [
- 10,
- 2,
- 4
- ],
- 'keyword-group-blanks-after' => [
- 1,
- 2
- ],
- 'cuddled-else' => [
- 0,
- 1
- ],
- 'space-after-keyword' => [
- 'push'
- ],
- 'paren-tightness' => [
- 0,
- 1,
- 2
+ 'want-left-space' => [
+ '+ -',
+ '= .= =~ !~ :'
],
- 'stack-opening-paren' => [
- 0,
- 1
- ],
- 'want-break-after' => [
- '% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x= . << >> -> && ||'
- ],
- 'brace-vertical-tightness' => [
- 0,
- 1,
- 2
- ],
- 'space-prototype-paren' => [
+ 'format' => [
+ 'html',
+ 'tidy'
+ ],
+ 'fuzzy-line-length' => [
+ 0,
+ 1
+ ],
+ 'block-brace-tightness' => [
0,
1,
2
],
- 'weld-nested-containers' => [
- 0,
- 1
- ],
- 'opening-square-bracket-right' => [
- 0,
- 1
- ],
- 'closing-paren-indentation' => [
- 0,
- 1,
- 2
- ],
'warning-output' => [
0,
1
],
- 'paren-vertical-tightness-closing' => [
- 0,
- 2
- ],
- 'blank-lines-before-closing-block-list' => [
- '*'
- ],
- 'outdent-static-block-comments' => [
- 0,
- 1
- ],
- 'nowant-left-space' => [
- '++ -- ?',
- '..',
- '= + - / *',
- '= / *'
- ],
- 'hanging-side-comments' => [
- 0,
- 1
- ],
- 'break-at-old-method-breakpoints' => [
- 0,
- 1
- ],
- 'maximum-consecutive-blank-lines' => [
- 0,
- 1,
- 2
- ],
- 'keep-old-blank-lines' => [
- 0,
- 1,
- 2
- ],
+ 'stack-closing-square-bracket' => [
+ 0,
+ 1
+ ],
'opening-hash-brace-right' => [
0,
1
],
- 'outdent-labels' => [
- 0,
- 1
- ],
- 'maximum-fields-per-table' => [
- 0
- ],
- 'break-at-old-comma-breakpoints' => [
+ 'block-brace-vertical-tightness' => [
0,
1
],
- 'blank-lines-before-packages' => [
- 0,
- 1
- ],
- 'outdent-keywords' => [
- 0,
- 1
- ],
- 'maximum-line-length' => [
- 0,
- 1,
- 100,
- 100000,
- 160,
- 77,
- 78,
- 80
- ],
+ 'minimum-space-to-comment' => [
+ 10,
+ 2,
+ 4
+ ],
+ 'opening-brace-always-on-right' => [
+ 0,
+ 1
+ ],
+ 'break-at-old-semicolon-breakpoints' => [
+ 0,
+ 1
+ ],
'blanks-before-comments' => [
0,
1
],
- 'stack-closing-block-brace' => [
+ 'delete-old-whitespace' => [
+ 0,
+ 1
+ ],
+ 'closing-side-comment-interval' => [
+ 2,
+ 20,
+ 6
+ ],
+ 'tight-secret-operators' => [
+ 0,
+ 1
+ ],
+ 'brace-vertical-tightness' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'space-keyword-paren' => [
+ 0,
+ 1
+ ],
+ 'variable-maximum-line-length' => [
+ 0,
+ 1
+ ],
+ 'short-concatenation-item-length' => [
+ 12,
+ 8
+ ],
+ 'delete-block-comments' => [
+ 0,
+ 1
+ ],
+ 'opening-brace-on-new-line' => [
0,
1
],
- 'blank-lines-after-opening-block-list' => [
- '*'
- ]
+ 'sub-alias-list' => [
+ 'method fun'
+ ],
+ 'brace-tightness' => [
+ 0,
+ 1,
+ 2
+ ],
+ 'line-up-parentheses' => [
+ 0,
+ 1
+ ],
+ 'format-skipping-begin' => [
+ '#<{2,}'
+ ],
+ 'stack-closing-paren' => [
+ 0,
+ 1
+ ],
+ 'static-side-comments' => [
+ 0,
+ 1
+ ]
};
# --noindent-block-comments,
# --nohanging-side-comments
# --static-side-comments
--fpsc=40 -iscl -nibc -nhsc -ssc
+# --trim-pod
+-fpsc=40 -iscl -nibc -nhsc -ssc -trp
----------
'comments2' => <<'----------',
# testing --minimum-space-to-comment=10, --delete-block-comments, --delete-pod
-msc=10 -dbc -dp
----------
'comments3' => <<'----------',
-# testing --maximum-consecutive-blank-lines=2 and --indent-spaced-block-comments
--mbl=2 -isbc
+# testing --maximum-consecutive-blank-lines=2 and --indent-spaced-block-comments --no-format-skipping
+-mbl=2 -isbc -nfs
----------
'comments4' => <<'----------',
# testing --keep-old-blank-lines=2 [=all] and
# --nooutdent-long-comments and
# --outdent-static-block-comments
--kbl=2 -nolc -osbc
+# --format-skipping-begin and --format-skipping-end
+-kbl=2 -nolc -osbc -fsb='#<{2,}' -fse='#>{2,}'
----------
'def' => "",
'long_line' => "-l=0",
} # end level 1
-#<<< do not let perltidy touch this
+#<<< do not let perltidy touch this unless -nfs is set
my @list = (1,
1, 1,
1, 2, 1,
1, 4, 6, 4, 1,);
#>>>
+#<< test alternate format skipping string
+ my @list = (1,
+ 1, 1,
+ 1, 2, 1,
+ 1, 3, 3, 1,
+ 1, 4, 6, 4, 1,);
+#>>
+
# some blank lines follow
=pod
-Some pod after __END__ to delete with -dp
+Some pod after __END__ to delete with -dp and trim with -trp
=cut
} # end level 2
} # end level 1
-#<<< do not let perltidy touch this
+#<<< do not let perltidy touch this unless -nfs is set
my @list = (1,
1, 1,
1, 2, 1,
1, 4, 6, 4, 1,);
#>>>
+#<< test alternate format skipping string
+my @list = ( 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, );
+
+#>>
+
# some blank lines follow
=pod
=pod
-Some pod after __END__ to delete with -dp
+Some pod after __END__ to delete with -dp and trim with -trp
=cut
} # end level 2
} # end level 1
-#<<< do not let perltidy touch this
+#<<< do not let perltidy touch this unless -nfs is set
my @list = (1,
1, 1,
1, 2, 1,
1, 4, 6, 4, 1,);
#>>>
+my @list = ( 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, );
+
__END__
} # end level 1
-#<<< do not let perltidy touch this
- my @list = (1,
- 1, 1,
- 1, 2, 1,
- 1, 3, 3, 1,
- 1, 4, 6, 4, 1,);
+#<<< do not let perltidy touch this unless -nfs is set
+my @list = ( 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, );
+
#>>>
+#<< test alternate format skipping string
+my @list = ( 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, );
+
+#>>
+
# some blank lines follow
=pod
-Some pod after __END__ to delete with -dp
+Some pod after __END__ to delete with -dp and trim with -trp
=cut
} # end level 1
-#<<< do not let perltidy touch this
+#<<< do not let perltidy touch this unless -nfs is set
my @list = (1,
1, 1,
1, 2, 1,
1, 4, 6, 4, 1,);
#>>>
+#<< test alternate format skipping string
+ my @list = (1,
+ 1, 1,
+ 1, 2, 1,
+ 1, 3, 3, 1,
+ 1, 4, 6, 4, 1,);
+#>>
+
# some blank lines follow
=pod
-Some pod after __END__ to delete with -dp
+Some pod after __END__ to delete with -dp and trim with -trp
=cut
} # end level 2
} # end level 1
-#<<< do not let perltidy touch this
+#<<< do not let perltidy touch this unless -nfs is set
my @list = (1,
1, 1,
1, 2, 1,
1, 4, 6, 4, 1,);
#>>>
+#<< test alternate format skipping string
+my @list = ( 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, );
+
+#>>
+
# some blank lines follow
=pod
=pod
-Some pod after __END__ to delete with -dp
+Some pod after __END__ to delete with -dp and trim with -trp
=cut