langateam/node-plv8

View on GitHub
index.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function install has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  install ({ modulePath, moduleName }, compact = true) {
    return this.init()
    .then(() => {
      return new Promise((resolve, reject) => {
        browserify({ ignoreMissing: true, standalone: moduleName })
Severity: Minor
Found in index.js - About 1 hr to fix

    Function eval has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      eval (f, compact = true) {
        let es5
        const template = `
          (function () {
            try {
    Severity: Minor
    Found in index.js - About 1 hr to fix

      Function init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        init () {
          return this.knex('pg_catalog.pg_namespace').select().where({ nspname: 'v8' })
            .then(([ schema ]) => {
              if (schema) {
                return
      Severity: Minor
      Found in index.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status