yoichiro/chrome_mysql_admin

View on GitHub

Showing 215 of 375 total issues

Function loadStructure has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var loadStructure = function(tables, sqls) {
        if (tables.length === 0) {
            $("#findRowsWithTheValueDialog").modal("hide");
            anyQueryExecuteService.showAndExecuteQueryPanel(
                sqls.join(";\n"),

    Function initializeRowsGrid has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var initializeRowsGrid = function() {
            $scope.sortOptions = {
                fields: [],
                directions: [],
                columns: []
    Severity: Minor
    Found in app/scripts/window/controllers/rows_panel_controller.js - About 1 hr to fix

      Function set has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              set: function(hostName, port, userName, password) {
                  var deferred = $q.defer();
                  chrome.storage.local.get("identities", function(items) {
                      var identities = items.identities || {};
                      if (getKeyLength(identities) >= 10) {
      Severity: Minor
      Found in app/scripts/window/services/identity_keep_service.js - About 1 hr to fix

        Function getShortPosition has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    var getShortPosition = function(source, target) {
                        var source1 = source.x;
                        var source2 = source.x + source.width;
                        var target1 = target.x;
                        var target2 = target.x + target.width;
        Severity: Minor
        Found in app/scripts/window/directives/er_diagram.js - About 1 hr to fix

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

                      var getBasicPositionCalculator = function(model) {
                          return (function(model) {
                              var startX = 30;
                              var startY = 30;
                              var offsetX = startX;
          Severity: Minor
          Found in app/scripts/window/directives/er_diagram.js - About 1 hr to fix

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

                var createSelectedQueryResultBlob = function() {
                    var lines = [];
                    var queryResult = querySelectionService.getQueryResult();
                    var columnDefinitions = queryResult.result.columnDefinitions;
                    var resultsetRows = queryResult.result.resultsetRows;
            Severity: Minor
            Found in app/scripts/window/controllers/query_panel_controller.js - About 1 hr to fix

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

                      createInsertStatement: function(table, values, valueTypes) {
                          var targetColumns = [];
                          var targetValues = [];
                          angular.forEach(values, function(value, columnName) {
                              var valueType = valueTypes[columnName];
              Severity: Minor
              Found in app/scripts/window/services/sql_expression_service.js - About 1 hr to fix

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

                  function EUCJPEncoder(options) {
                    var fatal = options.fatal;
                    /**
                     * @param {ByteOutputStream} output_byte_stream Output byte stream.
                     * @param {CodePointInputStream} code_point_pointer Input stream.
                Severity: Minor
                Found in app/scripts/lib/encoding.js - About 1 hr to fix

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

                      var doOpen = function(activeTab) {
                          configurationService.getDatabaseInfoAutoUpdateSpan().then(function(span) {
                              $scope.databaseInfoAutoUpdateSpan = span / 1000;
                              return configurationService.getRowCountPerPageInRowsPanel();
                          }).then(function(rowCount) {
                  Severity: Minor
                  Found in app/scripts/window/controllers/configuration_dialog_controller.js - About 1 hr to fix

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

                            copyRow: function(queryResult, row) {
                                var columnDefinitions = queryResult.columnDefinitions;
                                var resultsetRows = queryResult.resultsetRows;
                                var values = [];
                                angular.forEach(columnDefinitions, function(column, index) {
                    Severity: Minor
                    Found in app/scripts/window/services/clipboard_service.js - About 1 hr to fix

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

                          var cps = (/** @return {Array.<number>} Code points. */function() {
                            /** @type {Array.<number>} */
                            var cps = [];
                            // Based on http://www.w3.org/TR/WebIDL/#idl-DOMString
                            var i = 0, n = string.length;
                      Severity: Minor
                      Found in app/scripts/lib/encoding.js - About 1 hr to fix

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

                          function EUCKREncoder(options) {
                            var fatal = options.fatal;
                            /**
                             * @param {ByteOutputStream} output_byte_stream Output byte stream.
                             * @param {CodePointInputStream} code_point_pointer Input stream.
                        Severity: Minor
                        Found in app/scripts/lib/encoding.js - About 1 hr to fix

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

                              var assignEventHandlers = function() {
                                  $scope.$on(Events.CONNECTION_CHANGED, function(event, data) {
                                      onConnectionChanged();
                                  });
                                  $scope.$on(Events.DATABASE_CHANGED, function(event, database) {

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

                              function UTF16Encoder(utf16_be, options) {
                                var fatal = options.fatal;
                                /**
                                 * @param {ByteOutputStream} output_byte_stream Output byte stream.
                                 * @param {CodePointInputStream} code_point_pointer Input stream.
                            Severity: Minor
                            Found in app/scripts/lib/encoding.js - About 1 hr to fix

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

                                  var assignEventHandlers = function() {
                                      $scope.$on(Events.CONNECTION_CHANGED, function(event, data) {
                                          onConnectionChanged();
                                      });
                                      $scope.$on(Events.MODE_CHANGED, function(event, mode) {
                              Severity: Minor
                              Found in app/scripts/window/controllers/query_panel_controller.js - About 1 hr to fix

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

                                    this.encode = function(output_byte_stream, code_point_pointer) {
                                      var code_point = code_point_pointer.get();
                                      if (code_point === EOF_code_point) {
                                        return EOF_byte;
                                      }
                                Severity: Minor
                                Found in app/scripts/lib/encoding.js - About 1 hr to fix

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

                                      var doShowQueryResult = function(index) {
                                          resetQueryResultGrid();
                                          var queryResult = $scope.queryResults[index];
                                          querySelectionService.setQueryResult(queryResult);
                                          $scope.selectedQuery = queryResult.query;
                                  Severity: Minor
                                  Found in app/scripts/window/controllers/query_panel_controller.js - About 1 hr to fix

                                    Function drawText has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                                var drawText = function(x, y, text, name, group, onDragHandler, onDragEndHandler, canvas) {
                                    Severity: Major
                                    Found in app/scripts/window/directives/er_diagram.js - About 1 hr to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                          if (typeService.isNumeric(typeName)) {
                                                                              values.push(value);
                                                                          } else {
                                                                              values.push("'" + sqlExpressionService.replaceValue(value).replace(/\n/g, "\\n") + "'");
                                                                          }
                                      Severity: Major
                                      Found in app/scripts/window/services/export_all_databases_service.js - About 45 mins to fix

                                        Function portForwarding has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                portForwarding: function(ssh2AuthType, ssh2Username, ssh2Password, serverHostname, serverPort, privateKey) {
                                        Severity: Minor
                                        Found in app/scripts/window/services/ssh2_port_forwarding_service.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language