bogdanRada/celluloid_pubsub

View on GitHub
lib/celluloid_pubsub.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

require 'rubygems'
Severity: Minor
Found in lib/celluloid_pubsub.rb by rubocop

Checks for a newline after the final magic comment.

Example:

# good
# frozen_string_literal: true

# Some documentation for Person
class Person
  # Some code
end

# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
  # Some code
end

Remove unnecessary require statement.
Open

require 'thread'
Severity: Minor
Found in lib/celluloid_pubsub.rb by rubocop

Checks for unnecessary require statement.

The following features are unnecessary require statement because they are already loaded.

ruby -ve 'p $LOADED_FEATURES.reject { |feature| %r|/| =~ feature }' ruby 2.2.8p477 (2017-09-14 revision 59906) [x86_64-darwin13] ["enumerator.so", "rational.so", "complex.so", "thread.rb"]

This cop targets Ruby 2.2 or higher containing these 4 features.

Example:

# bad
require 'unloaded_feature'
require 'thread'

# good
require 'unloaded_feature'

There are no issues that match your filters.

Category
Status