bin/cc-tddium-post-worker
Use warn
instead of $stderr.puts
to allow such output to be disabled. Open
Open
$stderr.puts "Cannot batch post - environment variable CODECLIMATE_REPO_TOKEN must be set."
- 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')