cdnjs/autoupdate

View on GitHub
updaters/git.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function update has 143 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var update = function (library, callback) {
  var target = library.autoupdate.target;
  var localTarget = path.normalize(path.join(
    __dirname, '../', GIT_REPO_LOCAL_FOLDER, library.name
  ));
Severity: Major
Found in updaters/git.js - About 5 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                  if (
                    (allFiles.length !== 0) &&
                    (
                      (!library.version) ||
                      (
    Severity: Major
    Found in updaters/git.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status