app/helpers/map_locations_helper.rb

Summary

Maintainability
A
35 mins
Test Coverage

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

  def render_map(map_location, parent_class, editable, remove_marker_label, investments_coordinates=nil)
Severity: Minor
Found in app/helpers/map_locations_helper.rb - About 35 mins to fix

    Line is too long. [104/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

      def render_map(map_location, parent_class, editable, remove_marker_label, investments_coordinates=nil)
    Severity: Minor
    Found in app/helpers/map_locations_helper.rb by rubocop

    Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

        map_location.present? && map_location.longitude.present? ? map_location.longitude : Setting["map_longitude"]
    Severity: Minor
    Found in app/helpers/map_locations_helper.rb by rubocop

    Line is too long. [115/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

                              data: prepare_map_settings(map_location, editable, parent_class, investments_coordinates)
    Severity: Minor
    Found in app/helpers/map_locations_helper.rb by rubocop

    Line is too long. [109/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

        map_location.present? && map_location.latitude.present? ? map_location.latitude : Setting["map_latitude"]
    Severity: Minor
    Found in app/helpers/map_locations_helper.rb by rubocop

    There are no issues that match your filters.

    Category
    Status