sghill/grunt-jenkins

View on GitHub
tasks/fileSystem.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function FileSystem has 96 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function FileSystem(pipelineDirectory, grunt) {

  this.pipelineDirectory = pipelineDirectory;

  this.readFile = function(fileAndJob) {
Severity: Major
Found in tasks/fileSystem.js - About 3 hrs to fix

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

      this.saveJobsToPipelineDirectory = function(jobs) {
        var deferred = q.defer();
        var fileWritingPromises = _.map(jobs, function(j, index) {
          var d = q.defer();
          ensureDirectoriesExist([pipelineDirectory, j.name]);
    Severity: Minor
    Found in tasks/fileSystem.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status