evansiroky/gtfs-sequelize

View on GitHub
index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (config) {
  const connectToDatabase = function (rawModels) {
    const db = Database(config.database, config.sequelizeOptions ? config.sequelizeOptions : {})
    if (!rawModels && config.spatial) {
      db.stop = db.sequelize.import('models/spatial/stop.js')
Severity: Minor
Found in index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status