vinicius0026/rethinkdb-migrate

View on GitHub

Showing 2 of 8 total issues

File migrate.js has 320 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict'

const EventEmitter = require('events')
const Fs = require('fs')
const Joi = require('joi')
Severity: Minor
Found in lib/migrate.js - About 3 hrs to fix

    Function validateOptions has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function validateOptions (options) {
      const schema = Joi.object().keys({
        op: Joi.string().valid('up', 'down').required()
          .description('Migration command'),
        step: Joi.number().min(1)
    Severity: Major
    Found in lib/migrate.js - About 2 hrs to fix
      Severity
      Category
      Status
      Source
      Language