Showing 2 of 8 total issues
File migrate.js
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict'
const EventEmitter = require('events')
const Fs = require('fs')
const Joi = require('joi')
Function validateOptions
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validateOptions (options) {
const schema = Joi.object().keys({
op: Joi.string().valid('up', 'down').required()
.description('Migration command'),
step: Joi.number().min(1)