codeclimate-community/codeclimate-foodcritic

View on GitHub
bin/codeclimate-foodcritic

Summary

Maintainability
Test Coverage

Use warn instead of $stderr.puts to allow such output to be disabled.
Open

    $stderr.puts "Omitting issue for non-existent file: #{issue.filename}"
Severity: Minor
Found in bin/codeclimate-foodcritic by rubocop

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')

There are no issues that match your filters.

Category
Status