tootsuite/mastodon

View on GitHub
lib/mastodon/ip_blocks_cli.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not write to stdout. Use Rails's logger if you want to log.
Invalid

          puts "deny #{ip_block.ip}/#{ip_block.ip.prefix};"
Severity: Minor
Found in lib/mastodon/ip_blocks_cli.rb by rubocop

This cop checks for the use of output calls like puts and print

Example:

# bad
puts 'A debug message'
pp 'A debug message'
print 'A debug message'

# good
Rails.logger.debug 'A debug message'

Do not write to stdout. Use Rails's logger if you want to log.
Invalid

          puts "#{ip_block.ip}/#{ip_block.ip.prefix}"
Severity: Minor
Found in lib/mastodon/ip_blocks_cli.rb by rubocop

This cop checks for the use of output calls like puts and print

Example:

# bad
puts 'A debug message'
pp 'A debug message'
print 'A debug message'

# good
Rails.logger.debug 'A debug message'

There are no issues that match your filters.

Category
Status