dimitri-koenig/simple-vertec-api

View on GitHub
lib/simple-vertec-query.js

Summary

Maintainability
B
5 hrs
Test Coverage

SimpleVertecQuery has 27 functions (exceeds 20 allowed). Consider refactoring.
Open

export class SimpleVertecQuery {
    /**
     * Sets global api for every instance
     *
     * @param {SimpleVertecApi} api An instance of SimpleVertecApi
Severity: Minor
Found in lib/simple-vertec-query.js - About 3 hrs to fix

    Function get has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        get(refresh = false) {
            if (this.options.useParallelMode && this.options.query.objref) {
                let ids = _.isArray(this.options.query.objref) ? _.clone(this.options.query.objref) : [this.options.query.objref];
    
                return q.map(ids, id => {
    Severity: Major
    Found in lib/simple-vertec-query.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status