Skip to content

Commit

Permalink
perlcriticrc: add.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Apr 15, 2024
1 parent fe97c62 commit fb99f03
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .perlcriticrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
severity = 1
verbose = %f:%l: [%p] %m\n

[-CodeLayout::RequireTidyCode]
# no, thanks

[-ErrorHandling::RequireCarping]
# die is good enough for our purposes

[InputOutput::ProhibitBacktickOperators]
only_in_void_context = 1

[InputOutput::RequireCheckedSyscalls]
functions = :builtins

[-Modules::RequireVersionVar]
# useful only for modules

[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireLineBoundaryMatching]
# no, thanks

[-RegularExpressions::RequireExtendedFormatting]
# no, thanks

[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
# no, thanks

[-ValuesAndExpressions::ProhibitMagicNumbers]
# no, thanks

[-ValuesAndExpressions::ProhibitVersionStrings]
# we don't care about Perl << 5.6, which doesn't support version strings

# vim:ft=dosini

0 comments on commit fb99f03

Please sign in to comment.