X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=perl%2Fperlcriticrc;h=ce49d500fa9b3121a27146556850cc45f6f0f9ce;hb=733df0002c03b0c503cb09b970c78a6dd54a4793;hp=476ae8adbc767b15beed0bbc49e2c82a85f1aa82;hpb=35b924d46fd7056f0ec62b1669b1d8c0b57da3f6;p=config%2Fdotfiles.git diff --git a/perl/perlcriticrc b/perl/perlcriticrc index 476ae8a..ce49d50 100644 --- a/perl/perlcriticrc +++ b/perl/perlcriticrc @@ -44,10 +44,17 @@ 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] -allow = $! $. $@ $/ $" +allow = $0 $! $? $. $@ $/ $" $+ # Allow the usage of ".." when '..' occurs inside the string, e.g. in strings # like ".. '..' ..".