langateam/node-plv8

View on GitHub
lib/bootstrap.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

module.exports = function(knex) {
  return knex.raw(`
      SET client_min_messages TO WARNING;
      DO $$ BEGIN
        CREATE EXTENSION IF NOT EXISTS plv8;
Severity: Minor
Found in lib/bootstrap.js - About 2 hrs to fix

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

    function createStoredProcedure (name, paramObj, ret, func, init) {
      const signature = _.map(paramObj, (type, key) => {
        return {
          arg: (type === 'v8.json') ? `JSON.parse('${key}')` : key,
          param: `${key} ${type}`
    Severity: Minor
    Found in lib/bootstrap.js - About 1 hr to fix

      Function createStoredProcedure has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function createStoredProcedure (name, paramObj, ret, func, init) {
      Severity: Minor
      Found in lib/bootstrap.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status