app/services/import_reach_skills_volunteer_opportunities.rb
Method has too many lines. [7/5] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def populate_vol_op_attributes(op, model, coordinates)
model.source = 'reachskills'
model.latitude = coordinates ? coordinates.latitude.to_f : 0.0
model.longitude = coordinates ? coordinates.longitude.to_f : 0.0
model.title = op['node']['title']
- 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.