app/services/import_reach_skills_volunteer_opportunities.rb
Method has too many lines. [12/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def populate_vol_op_attributes(op, model, coordinates)
location = Location.create coordinates
model.source = 'reachskills'
model.latitude = location.latitude
model.longitude = location.longitude
- 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 populate_vol_op_attributes is too high. [19.21/15] (http://c2.com/cgi/wiki?AbcMetric) Open
Open
def populate_vol_op_attributes(op, model, coordinates)
location = Location.create coordinates
model.source = 'reachskills'
model.latitude = location.latitude
model.longitude = location.longitude
- 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