CLOSER-Cohorts/archivist

View on GitHub
lib/importers/xml/ddi/code_list.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method XML_node has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def XML_node(node)
      codes_to_add = []
      node.xpath('./Code').each_with_index do |code, i|
        begin
          co = ::Code.new ({
Severity: Minor
Found in lib/importers/xml/ddi/code_list.rb - About 1 hr to fix

(...) interpreted as grouped expression.
Open

          co = ::Code.new ({
Severity: Minor
Found in lib/importers/xml/ddi/code_list.rb by rubocop

Checks for space between the name of a called method and a left parenthesis.

Example:

# bad

puts (x + y)

Example:

# good

puts(x + y)

There are no issues that match your filters.

Category
Status