adobe/brackets

View on GitHub
src/utils/ExtensionLoader.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function loadExtensionModule has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function loadExtensionModule(name, config, entryPoint) {
        var extensionConfig = {
            context: name,
            baseUrl: config.baseUrl,
            paths: globalPaths,
Severity: Minor
Found in src/utils/ExtensionLoader.js - About 1 hr to fix

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

        function init(paths) {
            var params = new UrlParams();
    
            if (_init) {
                // Only init once. Return a resolved promise.
    Severity: Minor
    Found in src/utils/ExtensionLoader.js - About 1 hr to fix

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

          function _loadAll(directory, config, entryPoint, processExtension) {
              var result = new $.Deferred();
      
              FileSystem.getDirectoryForPath(directory).getContents(function (err, contents) {
                  if (!err) {
      Severity: Minor
      Found in src/utils/ExtensionLoader.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status