flant/superhosting

View on GitHub
bin/sx

Summary

Maintainability
Test Coverage

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

  $stderr.puts('Interrupted')
Severity: Minor
Found in bin/sx 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')

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

  $stderr.puts(net_status[:message] ||
Severity: Minor
Found in bin/sx 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