adobe/brackets

View on GitHub
src/utils/ExtensionUtils.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function loadMetadata has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function loadMetadata(folder) {
        var packageJSONFile = FileSystem.getFileForPath(folder + "/package.json"),
            disabledFile = FileSystem.getFileForPath(folder + "/.disabled"),
            baseName = FileUtils.getBaseName(folder),
            result = new $.Deferred(),
Severity: Minor
Found in src/utils/ExtensionUtils.js - About 1 hr to fix

    Function loadStyleSheet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function loadStyleSheet(module, path) {
            var result = new $.Deferred();
    
            loadFile(module, path)
                .done(function (content) {
    Severity: Minor
    Found in src/utils/ExtensionUtils.js - About 1 hr to fix

      Function parseLessCode has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function parseLessCode(code, url) {
              var result = new $.Deferred(),
                  options;
      
              if (url) {
      Severity: Minor
      Found in src/utils/ExtensionUtils.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status