]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - perl/perlcriticrc
psql: add vim modeline
[config/dotfiles.git] / perl / perlcriticrc
index 476ae8adbc767b15beed0bbc49e2c82a85f1aa82..6fb1f062c9fdd8f0f5ec1f168c0848e75782b949 100644 (file)
@@ -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 ".. '..' ..".