Dalphi/dalphi

View on GitHub

Showing 1,441 of 1,441 total issues

Line is too long. [92/80]
Open

                                                      text_nominal_interface.interface_type,
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Use normalcase for variable numbers.
Open

      interface_type_2 = FactoryGirl.create(:interface_type, name: 'regular_interface')
Severity: Minor
Found in spec/models/service_spec.rb by rubocop

This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.

Example: EnforcedStyle: snake_case

# bad

variable1 = 1

# good

variable_1 = 1

Example: EnforcedStyle: normalcase (default)

# bad

variable_1 = 1

# good

variable1 = 1

Example: EnforcedStyle: non_integer

# bad

variable1 = 1

variable_1 = 1

# good

variableone = 1

variable_one = 1

Align the parameters of a method call if they span more than one line.
Open

        filename: 'file2.md',
        project: @raw_datum.project
Severity: Minor
Found in spec/models/raw_datum_spec.rb by rubocop

Here we check if the parameters on a multi-line method call or definition are aligned.

Example: EnforcedStyle: withfirstparameter (default)

# good

foo :bar,
    :baz

# bad

foo :bar,
  :baz

Example: EnforcedStyle: withfixedindentation

# good

foo :bar,
  :baz

# bad

foo :bar,
    :baz

Use normalcase for variable numbers.
Open

      file_path_2 = Rails.root.join('spec/fixtures/text/valid2.md')
Severity: Minor
Found in spec/models/raw_datum_spec.rb by rubocop

This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.

Example: EnforcedStyle: snake_case

# bad

variable1 = 1

# good

variable_1 = 1

Example: EnforcedStyle: normalcase (default)

# bad

variable_1 = 1

# good

variable1 = 1

Example: EnforcedStyle: non_integer

# bad

variable1 = 1

variable_1 = 1

# good

variableone = 1

variable_one = 1

Line is too long. [84/80]
Open

      @project.merge_service = FactoryGirl.create(:merge_service, problem_id: 'NER')
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Line is too long. [105/80]
Open

                          template: File.new("#{Rails.root}/spec/fixtures/interfaces/ner_complete.html"))
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Line is too long. [83/80]
Open

                                          interface_type: interface.interface_type,
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Line is too long. [89/80]
Open

    it 'should contain raw_datum.id and base64 encoded data for one present raw datum' do
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Use normalcase for variable numbers.
Open

      interface_type_1 = FactoryGirl.create(:interface_type)
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.

Example: EnforcedStyle: snake_case

# bad

variable1 = 1

# good

variable_1 = 1

Example: EnforcedStyle: normalcase (default)

# bad

variable_1 = 1

# good

variable1 = 1

Example: EnforcedStyle: non_integer

# bad

variable1 = 1

variable_1 = 1

# good

variableone = 1

variable_one = 1

Redundant curly braces around a hash parameter.
Open

        {
          'text_nominal' => text_nominal_interface.title,
          'other_interface_type' => other_interface.title
        }
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

This cop checks for braces around the last parameter in a method call if the last parameter is a hash. It supports braces, no_braces and context_dependent styles.

Example: EnforcedStyle: braces

# The `braces` style enforces braces around all method
# parameters that are hashes.

# bad
some_method(x, y, a: 1, b: 2)

# good
some_method(x, y, {a: 1, b: 2})

Example: EnforcedStyle: no_braces (default)

# The `no_braces` style checks that the last parameter doesn't
# have braces around it.

# bad
some_method(x, y, {a: 1, b: 2})

# good
some_method(x, y, a: 1, b: 2)

Example: EnforcedStyle: context_dependent

# The `context_dependent` style checks that the last parameter
# doesn't have braces around it, but requires braces if the
# second to last parameter is also a hash literal.

# bad
some_method(x, y, {a: 1, b: 2})
some_method(x, y, {a: 1, b: 2}, a: 1, b: 2)

# good
some_method(x, y, a: 1, b: 2)
some_method(x, y, {a: 1, b: 2}, {a: 1, b: 2})

Redundant curly braces around a hash parameter.
Open

        {
          success: ['valid1.md', 'subdir/valid2.md'],
          error: ['invalid1.bin', 'subdir/invalid2.bin']
        }
Severity: Minor
Found in spec/models/raw_datum_spec.rb by rubocop

This cop checks for braces around the last parameter in a method call if the last parameter is a hash. It supports braces, no_braces and context_dependent styles.

Example: EnforcedStyle: braces

# The `braces` style enforces braces around all method
# parameters that are hashes.

# bad
some_method(x, y, a: 1, b: 2)

# good
some_method(x, y, {a: 1, b: 2})

Example: EnforcedStyle: no_braces (default)

# The `no_braces` style checks that the last parameter doesn't
# have braces around it.

# bad
some_method(x, y, {a: 1, b: 2})

# good
some_method(x, y, a: 1, b: 2)

Example: EnforcedStyle: context_dependent

# The `context_dependent` style checks that the last parameter
# doesn't have braces around it, but requires braces if the
# second to last parameter is also a hash literal.

# bad
some_method(x, y, {a: 1, b: 2})
some_method(x, y, {a: 1, b: 2}, a: 1, b: 2)

# good
some_method(x, y, a: 1, b: 2)
some_method(x, y, {a: 1, b: 2}, {a: 1, b: 2})

Line is too long. [99/80]
Open

                                             associated_problem_identifiers: %w(ultraNER hyperNER))
Severity: Minor
Found in spec/models/interface_spec.rb by rubocop

Line is too long. [89/80]
Open

      @interface.template = File.new("#{Rails.root}/spec/fixtures/interfaces/empty.html")
Severity: Minor
Found in spec/models/interface_spec.rb by rubocop

Line is too long. [90/80]
Open

      @interface.stylesheet = File.new("#{Rails.root}/spec/fixtures/interfaces/empty.css")
Severity: Minor
Found in spec/models/interface_spec.rb by rubocop

Useless assignment to variable - not_associated_service.
Open

      not_associated_service = FactoryGirl.create(:iterate_service,
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

This cop checks for every useless assignment to local variable in every scope. The basic idea for this cop was from the warning of ruby -cw:

assigned but unused variable - foo

Currently this cop has advanced logic that detects unreferenced reassignments and properly handles varied cases such as branch, loop, rescue, ensure, etc.

Example:

# bad

def some_method
  some_var = 1
  do_something
end

Example:

# good

def some_method
  some_var = 1
  do_something(some_var)
end

Line is too long. [86/80]
Open

                                                    interface_types: [interface_type])
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Line is too long. [88/80]
Open

                           data: File.new("#{Rails.root}/spec/fixtures/text/valid1.md"),
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Line is too long. [113/80]
Open

            expect(entry.get_input_stream.read.force_encoding('utf-8')).to eq(File.new(raw_datum.data.path).read)
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

Use normalcase for variable numbers.
Open

      interface_type_2 = FactoryGirl.create(:interface_type_text_nominal)
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.

Example: EnforcedStyle: snake_case

# bad

variable1 = 1

# good

variable_1 = 1

Example: EnforcedStyle: normalcase (default)

# bad

variable_1 = 1

# good

variable1 = 1

Example: EnforcedStyle: non_integer

# bad

variable1 = 1

variable_1 = 1

# good

variableone = 1

variable_one = 1

Use normalcase for variable numbers.
Open

      interface_type_2 = FactoryGirl.create(:interface_type_text_nominal)
Severity: Minor
Found in spec/models/project_spec.rb by rubocop

This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.

Example: EnforcedStyle: snake_case

# bad

variable1 = 1

# good

variable_1 = 1

Example: EnforcedStyle: normalcase (default)

# bad

variable_1 = 1

# good

variable1 = 1

Example: EnforcedStyle: non_integer

# bad

variable1 = 1

variable_1 = 1

# good

variableone = 1

variable_one = 1
Severity
Category
Status
Source
Language