AgileVentures/LocalSupport

View on GitHub
app/services/build_markers_with_info_window.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [22/7] (https://github.com/bbatsov/ruby-style-guide#short-methods)
Open

  def build_single_marker(model, marker)
    location = model.first
    models = model.last
    if model.first.try(:source)
      source = VolunteerOp.get_source(models)

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.

Assignment Branch Condition size for build_single_marker is too high. [17.49/15] (http://c2.com/cgi/wiki?AbcMetric)
Open

  def build_single_marker(model, marker)
    location = model.first
    models = model.last
    if model.first.try(:source)
      source = VolunteerOp.get_source(models)

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

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

  def self.with(models, listener, marker_builder = Gmaps::MarkersBuilder, helper = ActionController::Base.helpers)

There are no issues that match your filters.

Category
Status