app/helpers/rails_upgrade_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [13/10]
Open

  def update_elem_with_ajax_result(hash)
    j_ajax_elem = j(hash[:ajax_elem])
    j_update = j(hash[:update])

    rtn = <<~EOF
Severity: Minor
Found in app/helpers/rails_upgrade_helper.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Use meaningful heredoc delimiters.
Open

EOF
Severity: Minor
Found in app/helpers/rails_upgrade_helper.rb by rubocop

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

There are no issues that match your filters.

Category
Status