Samisdat/ddns

View on GitHub
grunt/lib/client.js

Summary

Maintainability
B
6 hrs
Test Coverage

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

module.exports = function (grunt) {

    var createUpdateMessageScript = function(){

        var deferred = q.defer();
Severity: Major
Found in grunt/lib/client.js - About 3 hrs to fix

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

        var createUpdateMessageScript = function(){
    
            var deferred = q.defer();
    
            qfs.fileExists('/ddns/client/create-update-message.sh')
    Severity: Minor
    Found in grunt/lib/client.js - About 1 hr to fix

      Function createClient has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var createClient = function(){
      
              var deferred = q.defer();
              qexec(grunt.log, 'mkdir -p /ddns/client', 'create dir for client', 0, true)
              .then(function () {
      Severity: Minor
      Found in grunt/lib/client.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status