app/services/build_markers_with_info_window.rb
Method has too many lines. [22/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def build_single_marker(model, marker)
location = model.first
models = model.last
if model.first.try(:source)
source = VolunteerOp.get_source(models)
- 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.
Assignment Branch Condition size for build_single_marker is too high. [17.49/15] (http://c2.com/cgi/wiki?AbcMetric) Open
Open
def build_single_marker(model, marker)
location = model.first
models = model.last
if model.first.try(:source)
source = VolunteerOp.get_source(models)
- Read upRead up
- Exclude checks
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
Open
def self.with(models, listener, marker_builder = Gmaps::MarkersBuilder, helper = ActionController::Base.helpers)
- Exclude checks