IotaSpencer/cloud_party

View on GitHub
test/cloud_party/context_test.rb

Summary

Maintainability
A
0 mins
Test Coverage

Extra empty line detected at class body beginning.
Open


  A.cfg.instance_variable_get(:@email).wont_be_nil
Severity: Minor
Found in test/cloud_party/context_test.rb by rubocop

This cops checks if empty lines around the bodies of classes match the configuration.

Example: EnforcedStyle: empty_lines

# good

class Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

class Foo
  class Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
class Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

class Foo
  def bar
    # ...
  end
end

Add an empty line after magic comments.
Open

require 'minitest/autorun'
Severity: Minor
Found in test/cloud_party/context_test.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


class ConfigAttrTest < Minitest::Test
Severity: Minor
Found in test/cloud_party/context_test.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

Final newline missing.
Open

end
Severity: Minor
Found in test/cloud_party/context_test.rb by rubocop

There are no issues that match your filters.

Category
Status