Skip to content

Commit 3308421

Browse files
committed
Update the perltidyrc and perlcriticrc files for this repo
1 parent 6e3cffb commit 3308421

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

perlcriticrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
severity = 3
22
verbose = 11
3-
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose
3+
theme = (core && (pbp || bugs || maintenance || cosmetic || complexity || security || tests)) || moose
44
program-extensions = pl psgi t
55

66
exclude = Subroutines::ProhibitCallsToUndeclaredSubs
@@ -55,7 +55,7 @@ add_packages = Carp Test::Builder
5555
[-RegularExpressions::RequireExtendedFormatting]
5656
[-RegularExpressions::RequireLineBoundaryMatching]
5757

58-
# https://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables
58+
# http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables
5959
[-Subroutines::RequireArgUnpacking]
6060

6161
# "use v5.14" is more readable than "use 5.014"
@@ -65,3 +65,6 @@ add_packages = Carp Test::Builder
6565
# prevents very common errors when using a sub in list context to construct a
6666
# hash and ending up with a missing value or key.
6767
[-Subroutines::ProhibitExplicitReturnUndef]
68+
69+
# Sometimes I want to write "return unless $x > 4"
70+
[-ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions]

perltidyrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
-nolq
1616
-npro
1717
-nsfs
18+
--blank-lines-before-packages=0
1819
--opening-hash-brace-right
1920
--no-outdent-long-comments
21+
--iterations=2
2022
-wbb="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="

0 commit comments

Comments
 (0)