conveyal/modeify

View on GitHub
lib/journey/model.js

Summary

Maintainability
A
1 hr
Test Coverage

Function generate has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

schema.statics.generate = function (data, callback) {
  if (!data.locations || !data.locations.length || data.locations.length < 2) {
    return callback(new Error('Journey requires 2 or more locations.'))
  }

Severity: Minor
Found in lib/journey/model.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status