adobe/brackets

View on GitHub
src/extensibility/InstallExtensionDialog.js

Summary

Maintainability
C
1 day
Test Coverage

Function _enterState has 112 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    InstallExtensionDialog.prototype._enterState = function (newState) {
        var url,
            msg,
            self = this,
            prevState = this._state;
Severity: Major
Found in src/extensibility/InstallExtensionDialog.js - About 4 hrs to fix

    File InstallExtensionDialog.js has 284 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
     *
     * Permission is hereby granted, free of charge, to any person obtaining a
     * copy of this software and associated documentation files (the "Software"),
    Severity: Minor
    Found in src/extensibility/InstallExtensionDialog.js - About 2 hrs to fix

      Function show has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          InstallExtensionDialog.prototype.show = function (urlToInstall) {
              if (this._state !== STATE_CLOSED) {
                  // Somehow the dialog got invoked twice. Just ignore this.
                  return this._dialogDeferred.promise();
              }
      Severity: Minor
      Found in src/extensibility/InstallExtensionDialog.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status