bin/codeclimate-foodcritic
Use warn
instead of $stderr.puts
to allow such output to be disabled. Open
Open
$stderr.puts "Omitting issue for non-existent file: #{issue.filename}"
- Read upRead up
- Exclude checks
This cop identifies places where $stderr.puts
can be replaced by
warn
. The latter has the advantage of easily being disabled by,
e.g. the -W0 interpreter flag, or setting $VERBOSE to nil.
Example:
# bad
$stderr.puts('hello')
# good
warn('hello')