ruby-analysis/delfos

View on GitHub
lib/delfos/neo4j/distance/update.rb

Summary

Maintainability
A
35 mins
Test Coverage

Method error has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        def error(err, start_file, call_site_id, finish_file, called_id)
Severity: Minor
Found in lib/delfos/neo4j/distance/update.rb - About 35 mins to fix

    Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
    Open

                "called_id: #{called_id} - #{err.message} #{err.backtrace}",
    Severity: Minor
    Found in lib/delfos/neo4j/distance/update.rb by rubocop

    This cop checks for trailing comma in array and hash literals.

    Example: EnforcedStyleForMultiline: consistent_comma

    # bad
    a = [1, 2,]
    
    # good
    a = [
      1, 2,
      3,
    ]
    
    # good
    a = [
      1,
      2,
    ]

    Example: EnforcedStyleForMultiline: comma

    # bad
    a = [1, 2,]
    
    # good
    a = [
      1,
      2,
    ]

    Example: EnforcedStyleForMultiline: no_comma (default)

    # bad
    a = [1, 2,]
    
    # good
    a = [
      1,
      2
    ]

    There are no issues that match your filters.

    Category
    Status