app/helpers/rails_upgrade_helper.rb
Method has too many lines. [13/10] Open
Open
def update_elem_with_ajax_result(hash)
j_ajax_elem = j(hash[:ajax_elem])
j_update = j(hash[:update])
rtn = <<~EOF
- Read upRead up
- Exclude checks
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
Open
EOF
- Read upRead up
- Exclude checks
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