yoctore/yocto-sftp

View on GitHub

Showing 4 of 16 total issues

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

module.exports = function (grunt) {
  // init config
  grunt.initConfig({
    // default package
    pkg       : grunt.file.readJSON('package.json'),
Severity: Major
Found in Gruntfile.js - About 2 hrs to fix

    Function ls has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Sftp.prototype.ls = function (config, remotePathDir, client) {
    
      client = client || false;
      // indicate if client was used
      var usedClient = false;
    Severity: Minor
    Found in src/modules/sftp/index.js - About 1 hr to fix

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

      Sftp.prototype.mkdir = function (config, pathFolder, parent) {
      
        // create async process
        var deferred  = Q.defer();
        // normalize the path
      Severity: Minor
      Found in src/modules/sftp/index.js - About 1 hr to fix

        Function put has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Sftp.prototype.put = function (config, localPathFile, remotePathFile) {
        
          // create async process
          var deferred  = Q.defer();
        
        
        Severity: Minor
        Found in src/modules/sftp/index.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language