From: Simon Ruderich Date: Thu, 20 Dec 2012 21:09:46 +0000 (+0100) Subject: perl/perlcriticrc: Don't require checking print's return value. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=2a2301c2cba9c23a5e84fdd3e54c40ecdb5c3e0b;p=config%2Fdotfiles.git perl/perlcriticrc: Don't require checking print's return value. --- diff --git a/perl/perlcriticrc b/perl/perlcriticrc index 70c720b..ce49d50 100644 --- a/perl/perlcriticrc +++ b/perl/perlcriticrc @@ -44,6 +44,13 @@ color = 1 # IMHO "print $FH ..." is readable enough, "print {$FH} ..." is not necessary. [-InputOutput::RequireBracedFileHandleWithPrint] +# Don't require checks for print's return value. I check the return value of +# other functions like open() or close(), but checking every print is just a +# waste of time. +[InputOutput::RequireCheckedSyscalls] +functions = :builtins +exclude_functions = print + # IMHO punctuation variables are more readable than their English counterparts # (and faster in some cases). So allow the ones I use often. [Variables::ProhibitPunctuationVars]