yoichiro/chrome_mysql_admin

View on GitHub

Showing 215 of 375 total issues

Function CodePointInputStream has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function CodePointInputStream(string) {
    /** @type {number} */
    var pos = 0;
    /** @type {Array.<number>} */
    var cps = (/** @return {Array.<number>} Code points. */function() {
Severity: Minor
Found in app/scripts/lib/encoding.js - About 1 hr to fix

    Function encode has 43 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 UTF16Decoder has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function UTF16Decoder(utf16_be, options) {
          var fatal = options.fatal;
          var /** @type {?number} */ utf16_lead_byte = null,
              /** @type {?number} */ utf16_lead_surrogate = null;
          /**
      Severity: Minor
      Found in app/scripts/lib/encoding.js - About 1 hr to fix

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

            $scope.updateRow = function() {
                resetErrorMessage();
                var sql = "UPDATE `" + targetObjectService.getTable().name + "` ";
                var sets = [];
                angular.forEach($scope.values, function(value, columnName) {
        Severity: Minor
        Found in app/scripts/window/controllers/update_row_dialog_controller.js - About 1 hr to fix

          Function encode has 42 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 startPortForwarding has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var startPortForwarding = function(event) {
                    var hostName = $scope.ssh2HostName;
                    var port = $scope.ssh2PortNumber;
                    ssh2PortForwardingService.connect(hostName, port).then(function(result) {
                        var fingerprint = result.values[0];
            Severity: Minor
            Found in app/scripts/window/controllers/login_form_controller.js - About 1 hr to fix

              Function ShiftJISDecoder has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function ShiftJISDecoder(options) {
                  var fatal = options.fatal;
                  var /** @type {number} */ shiftjis_lead = 0x00;
                  /**
                   * @param {ByteInputStream} byte_pointer
              Severity: Minor
              Found in app/scripts/lib/encoding.js - About 1 hr to fix

                Function decode has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    this.decode = function(byte_pointer) {
                      var bite = byte_pointer.get();
                      if (bite === EOF_byte && utf16_lead_byte === null &&
                          utf16_lead_surrogate === null) {
                        return EOF_code_point;
                Severity: Minor
                Found in app/scripts/lib/encoding.js - About 1 hr to fix

                  Function controller has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          controller: ["$scope", "GraphTypes", function($scope, GraphTypes) {
                              this.assignEventHandlers = function(scope, element) {
                                  window.addEventListener("resize", function(e) {
                                      scope.replot();
                                  });
                  Severity: Minor
                  Found in app/scripts/window/directives/status_graph.js - About 1 hr to fix

                    Function parseForeignKeysFromCreateTableDdl has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var parseForeignKeysFromCreateTableDdl = function(ddl) {
                            var result = [];
                            var lines = ddl.split("\n");
                            angular.forEach(lines, function(line) {
                                line = line.trim();
                    Severity: Minor
                    Found in app/scripts/window/services/relation_service.js - About 1 hr to fix

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

                          var loadStructure = function(tables, sqls) {
                              if (tables.length === 0) {
                                  $("#findSameRowsDialog").modal("hide");
                                  anyQueryExecuteService.showAndExecuteQueryPanel(
                                      sqls.join(";\n"),
                      Severity: Minor
                      Found in app/scripts/window/controllers/find_same_rows_dialog_controller.js - About 1 hr to fix

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

                            var assignEventHandlers = function() {
                                $scope.$on(Events.FAVORITE_SELECTED, function(event, favorite) {
                                    $scope.safeApply(function() {
                                        $scope.name = favorite.name;
                                        $scope.hostName = favorite.hostName;
                        Severity: Minor
                        Found in app/scripts/window/controllers/login_form_controller.js - About 1 hr to fix

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

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

                            Function decode has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                this.decode = function(byte_pointer) {
                                  var bite = byte_pointer.get();
                                  if (bite === EOF_byte && shiftjis_lead === 0x00) {
                                    return EOF_code_point;
                                  }
                            Severity: Minor
                            Found in app/scripts/lib/encoding.js - About 1 hr to fix

                              Function decode has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  decode: function decode(opt_view, options) {
                                    if (opt_view && !('buffer' in opt_view && 'byteOffset' in opt_view &&
                                                      'byteLength' in opt_view)) {
                                      throw new TypeError('Expected ArrayBufferView');
                                    } else if (!opt_view) {
                              Severity: Minor
                              Found in app/scripts/lib/encoding.js - About 1 hr to fix

                                Function onShowDialog has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    var onShowDialog = function() {
                                        resetErrorMessage();
                                        $scope.matchingType = "Full";
                                        $scope.removeEmptyResult = "true";
                                        var table = targetObjectService.getTable();
                                Severity: Minor
                                Found in app/scripts/window/controllers/find_same_rows_dialog_controller.js - About 1 hr to fix

                                  Function compile has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          compile: function(element, attrs) {
                                              setJCanvasDefaults();
                                              return function(scope, element, attrs, ctrl) {
                                                  scope.$watch("model", (function(element) {
                                                      return function(newVal, oldVal) {
                                  Severity: Minor
                                  Found in app/scripts/window/directives/er_diagram.js - About 1 hr to fix

                                    Function HZGB2312Encoder has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Function getProcedureParameters has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var getProcedureParameters = function(routineCode) {
                                              var start = routineCode.indexOf("(") + 1;
                                              var cnt = 0;
                                              var end = -1;
                                              for (var i = start; i < routineCode.length; i++) {

                                        Function executeProcedure has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var executeProcedure = function(selectedRoutine) {
                                                if (selectedRoutine.entity.ROUTINE_TYPE !== "PROCEDURE") {
                                                    return;
                                                }
                                                getRoutineCode(selectedRoutine).then(function(routineCode) {
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language