bogdanRada/celluloid_pubsub

View on GitHub
lib/celluloid_pubsub/base_actor.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

require_relative './helper'
Severity: Minor
Found in lib/celluloid_pubsub/base_actor.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

Extra blank line detected.
Open


if CelluloidPubsub::BaseActor.version_less_than_seventeen?
Severity: Minor
Found in lib/celluloid_pubsub/base_actor.rb by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Avoid using rescue in its modifier form.
Open

  celluloid_running = Celluloid.running? rescue false
Severity: Minor
Found in lib/celluloid_pubsub/base_actor.rb by rubocop

This cop checks for uses of rescue in its modifier form.

Example:

# bad
some_method rescue handle_error

# good
begin
  some_method
rescue
  handle_error
end

Inconsistent indentation detected.
Open

   Celluloid.boot unless celluloid_running
Severity: Minor
Found in lib/celluloid_pubsub/base_actor.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

There are no issues that match your filters.

Category
Status