X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=perl%2Fperlcriticrc;h=ce49d500fa9b3121a27146556850cc45f6f0f9ce;hb=58eb0aaacee47e33256c7b2590df59bd2c86dbe5;hp=357a493394d9a9a0e4efacb9ebeec68ac4b46857;hpb=9576dd226b9be83023388ddf2f67803836e6c74b;p=config%2Fdotfiles.git diff --git a/perl/perlcriticrc b/perl/perlcriticrc index 357a493..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 ".. '..' ..".