Samisdat/ddns

View on GitHub
grunt/lib/key.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

module.exports = function (grunt) {

    var createKeyDir = function(){
        if (true === fs.existsSync('/ddns/key')){
            return q.resolve();
Severity: Major
Found in grunt/lib/key.js - About 3 hrs to fix

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

        var readKey = function(){
            var deferred = q.defer();
    
            qfs.readdir('/ddns/key')
            .then(function(files){
    Severity: Minor
    Found in grunt/lib/key.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status