bowtie-co/node-houndstooth-sdk

View on GitHub

Showing 7 of 7 total issues

Function _loadPath has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  _loadPath (options = {}) {
    return new Promise(
      (resolve, reject) => {
        const content = {}

Severity: Major
Found in src/models/GitHub.js - About 2 hrs to fix

    File GitHub.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    const async = require('async')
    const parse = require('parse-link-header')
    const Octokit = require('@octokit/rest')
    const { verifyRequired } = require('@bowtie/utils')
    
    
    Severity: Minor
    Found in src/models/GitHub.js - About 2 hrs to fix

      Function upsertFiles has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        upsertFiles (params = {}) {
          verifyRequired(params, [ 'owner', 'repo', 'files', 'message' ])
      
          return new Promise(
            (resolve, reject) => {
      Severity: Major
      Found in src/models/GitHub.js - About 2 hrs to fix

        Function _exec has 53 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          _exec (key, action, params = {}) {
            return new Promise(
              (resolve, reject) => {
                this.logger.info(`Exec github for key: ${key}`)
        
        
        Severity: Major
        Found in src/models/GitHub.js - About 2 hrs to fix

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

          const test = async (ref = 'master') => {
            try {
              const j = new Jekyll({
                github,
                owner: 'bowtie-test',
          Severity: Minor
          Found in test.js - About 1 hr to fix

            Function parsePath has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              parsePath (path, params = {}) {
                return new Promise(
                  (resolve, reject) => {
                    if (this._isCached(path)) {
                      return resolve(this._cached(path))
            Severity: Minor
            Found in src/models/Collection.js - About 1 hr to fix

              Function collections has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                collections (params = {}) {
                  return new Promise(
                    (resolve, reject) => {
                      if (this._isCached('collections')) {
                        return resolve(this._cached('collections'))
              Severity: Minor
              Found in src/models/Jekyll.js - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language