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