expertiza/expertiza

View on GitHub
spec/spec_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Incorrect indentation detected (column 2 instead of 5).
Open

  #   # assertions if you prefer.
Severity: Minor
Found in spec/spec_helper.rb by rubocop

This cops checks the indentation of comments.

Example:

# bad
  # comment here
def method_name
end

  # comment here
a = 'hello'

# yet another comment
  if true
    true
  end

# good
# comment here
def method_name
end

# comment here
a = 'hello'

# yet another comment
if true
  true
end

Trailing whitespace detected.
Open

       end  
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Use 2 (not 4) spaces for indentation.
Open

       expectations.syntax = :expect
Severity: Minor
Found in spec/spec_helper.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Trailing whitespace detected.
Open

       
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Inconsistent indentation detected.
Open

     config.expect_with :rspec do |expectations|
       # Enable only the newer, non-monkey-patching expect syntax.
       # For more details, see:
       #   - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
       expectations.syntax = :expect
Severity: Minor
Found in spec/spec_helper.rb by rubocop

This cops checks for inconsistent indentation.

Example:

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

end at 86, 3 is not aligned with config.expect_with :rspec do |expectations| at 75, 5.
Open

   end
Severity: Minor
Found in spec/spec_helper.rb by rubocop

This cop checks whether the end keywords are aligned properly for do end blocks.

Three modes are supported through the EnforcedStyleAlignWith configuration parameter:

start_of_block : the end shall be aligned with the start of the line where the do appeared.

start_of_line : the end shall be aligned with the start of the line where the expression started.

either (which is the default) : the end is allowed to be in either location. The autofixer will default to start_of_line.

Example: EnforcedStyleAlignWith: either (default)

# bad

foo.bar
   .each do
     baz
       end

# good

variable = lambda do |i|
  i
end

Example: EnforcedStyleAlignWith: startofblock

# bad

foo.bar
   .each do
     baz
       end

# good

foo.bar
  .each do
     baz
   end

Example: EnforcedStyleAlignWith: startofline

# bad

foo.bar
   .each do
     baz
       end

# good

foo.bar
  .each do
     baz
end

There are no issues that match your filters.

Category
Status