ece517-p3/expertiza

View on GitHub
spec/features/timestamps_for_students_submissions_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [30/25]
Open

describe 'timestamps for student\'s submissions' do
  ###
  # Please follow the TDD process as much as you can.
  # Use factories to create necessary DB records.
  # Please avoid duplicated code as much as you can by moving the code to before(:each) block or separated methods.

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Inconsistent indentation detected.
Open

  context 'after current participant finishes an author feedback' do
      it 'displays a link named \'feedback\' with its timestamps (you could redirect to that feedback by clicking the link)'
      # it also displays due dates
      # it also displays submitted files or hyperlinks
      # it also displays review links

This cops checks for inconsistent indentation.

Example:

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

Trailing whitespace detected.
Open

  

end at 40, 4 is not aligned with context 'after current participant finishes an author feedback' do at 35, 2.
Open

    end

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