PicanhaLabs/PicanhaJS

View on GitHub

Showing 3 of 5 total issues

File builder.js has 305 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var fs             = require('fs'),
    Promise     = require('promise'),
    utils         = require('./utils'),
    path         = require('path'),
    crypto         = require('crypto'),
Severity: Minor
Found in bin/builder.js - About 3 hrs to fix

    prototype has 24 functions (exceeds 20 allowed). Consider refactoring.
    Open

    Builder.prototype = {
        
        postsData: [],
    
        parameters: {},
    Severity: Minor
    Found in bin/builder.js - About 2 hrs to fix

      Function makePost has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          makePost: function( filePath ) {
              var me = this, newFileName, globals = {}, content, filename, result, ispage, page, isdraft;
      
              return new Promise(function(resolve, reject) {
      
      
      Severity: Major
      Found in bin/builder.js - About 2 hrs to fix
        Severity
        Category
        Status
        Source
        Language