Dalphi/dalphi

View on GitHub
spec/requests/projects/raw_data/update_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

RSpec.describe 'RawData update', type: :request do
  before(:each) do
    @project = FactoryGirl.create :project
    @raw_datum = FactoryGirl.create :raw_datum,
                                    data: File.new("#{Rails.root}/spec/fixtures/text/valid1.md"),

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.

Line is too long. [94/80]
Open

    expect(response.header['Location'].gsub(/\?.*/, '')).to eq(project_raw_data_url(@project))

Line is too long. [113/80]
Open

    expect(File.new(raw_datum.data.path).read).to eq(File.new("#{Rails.root}/spec/fixtures/text/valid2.md").read)

Line is too long. [99/80]
Open

              data: fixture_file_upload("#{Rails.root}/spec/fixtures/text/valid2.md", 'text/plain')

Line is too long. [115/80]
Open

              data: fixture_file_upload("#{Rails.root}/spec/fixtures/text/invalid.bin", 'application/octet-stream')

Incorrect indentation detected (column 0 instead of 4).
Open

#    expect(raw_datum).to eq(@raw_datum)

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

Line is too long. [97/80]
Open

                                    data: File.new("#{Rails.root}/spec/fixtures/text/valid1.md"),

There are no issues that match your filters.

Category
Status