yoichiro/chrome_mysql_admin

View on GitHub

Showing 215 of 375 total issues

File login_form_controller.js has 283 lines of code (exceeds 250 allowed). Consider refactoring.
Open

chromeMyAdmin.controller("LoginFormController", function(
    $scope,
    $timeout,
    mySQLClientService,
    favoriteService,
Severity: Minor
Found in app/scripts/window/controllers/login_form_controller.js - About 2 hrs to fix

    Function HZGB2312Decoder has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function HZGB2312Decoder(options) {
        var fatal = options.fatal;
        var /** @type {boolean} */ hzgb2312 = false,
            /** @type {number} */ hzgb2312_lead = 0x00;
        /**
    Severity: Major
    Found in app/scripts/lib/encoding.js - About 2 hrs to fix

      Function EUCJPDecoder has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function EUCJPDecoder(options) {
          var fatal = options.fatal;
          var /** @type {number} */ eucjp_first = 0x00,
              /** @type {number} */ eucjp_second = 0x00;
          /**
      Severity: Major
      Found in app/scripts/lib/encoding.js - About 2 hrs to fix

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

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

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

              this.decode = function(byte_pointer) {
                var bite = byte_pointer.get();
                if (bite === EOF_byte) {
                  if (eucjp_first === 0x00 && eucjp_second === 0x00) {
                    return EOF_code_point;
          Severity: Major
          Found in app/scripts/lib/encoding.js - About 2 hrs to fix

            Function createWindow has 60 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function createWindow() {
                chrome.storage.local.get("windowSize", function(items) {
                    var params = {};
                    if (items.windowSize) {
                        var windowSize = items.windowSize;
            Severity: Major
            Found in app/scripts/background.js - About 2 hrs to fix

              Function _doQuery has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var _doQuery = function(task, showProgressBar) {
                      if (showProgressBar) {
                          $rootScope.showMainStatusMessage("Executing query...");
                          $rootScope.showProgressBar();
                      }
              Severity: Major
              Found in app/scripts/window/services/mysql_client_service.js - About 2 hrs to fix

                Function Big5Decoder has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function Big5Decoder(options) {
                    var fatal = options.fatal;
                    var /** @type {number} */ big5_lead = 0x00,
                        /** @type {?number} */ big5_pending = null;
                
                
                Severity: Major
                Found in app/scripts/lib/encoding.js - About 2 hrs to fix

                  Function UTF8Decoder has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function UTF8Decoder(options) {
                      var fatal = options.fatal;
                      var /** @type {number} */ utf8_code_point = 0,
                          /** @type {number} */ utf8_bytes_needed = 0,
                          /** @type {number} */ utf8_bytes_seen = 0,
                  Severity: Major
                  Found in app/scripts/lib/encoding.js - About 2 hrs to fix

                    File edit_column_dialog_controller.js has 262 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    chromeMyAdmin.controller("EditColumnDialogController", function(
                        $scope,
                        Events,
                        mySQLClientService,
                        $q,
                    Severity: Minor
                    Found in app/scripts/window/controllers/edit_column_dialog_controller.js - About 2 hrs to fix

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

                          this.decode = function(byte_pointer) {
                            // NOTE: Hack to support emitting two code points
                            if (big5_pending !== null) {
                              var pending = big5_pending;
                              big5_pending = null;
                      Severity: Major
                      Found in app/scripts/lib/encoding.js - About 2 hrs to fix

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

                            this.decode = function(byte_pointer) {
                              var bite = byte_pointer.get();
                              if (bite === EOF_byte) {
                                if (utf8_bytes_needed !== 0) {
                                  return decoderError(fatal);
                        Severity: Major
                        Found in app/scripts/lib/encoding.js - About 2 hrs to fix

                          Function assignEventHandlers has 55 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) {
                          Severity: Major
                          Found in app/scripts/window/controllers/rows_panel_controller.js - About 2 hrs to fix

                            Function createRoutine has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                $scope.createRoutine = function() {
                                    var sql = "CREATE DEFINER=CURRENT_USER ";
                                    sql += $scope.routineType + " `";
                                    sql += $scope.routineName + "` (";
                                    var params = [];
                            Severity: Major
                            Found in app/scripts/window/controllers/create_routine_dialog_controller.js - About 2 hrs to fix

                              Function ISO2022JPEncoder has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function ISO2022JPEncoder(options) {
                                  var fatal = options.fatal;
                                  /** @enum */
                                  var state = {
                                    ASCII: 0,
                              Severity: Minor
                              Found in app/scripts/lib/encoding.js - About 2 hrs to fix

                                Function ISO2022KREncoder has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function ISO2022KREncoder(options) {
                                    var fatal = options.fatal;
                                    /** @enum */
                                    var state = {
                                      ASCII: 0,
                                Severity: Minor
                                Found in app/scripts/lib/encoding.js - About 2 hrs to fix

                                  Function EUCKRDecoder has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Function set has 15 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            set: function(name, hostName, port, userName, password, useSSL, caCert, checkCN, usePortForwarding, ssh2HostName, ssh2Port, ssh2AuthType, ssh2UserName, ssh2Password, ssh2PrivateKey) {
                                    Severity: Major
                                    Found in app/scripts/window/services/favorite_service.js - About 1 hr to fix

                                      Function loadDumpData has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var loadDumpData = function(tables, index, deferred) {
                                              if (index == tables.length) {
                                                  deferred.resolve(tables);
                                              } else {
                                                  var table = tables[index];
                                      Severity: Minor
                                      Found in app/scripts/window/services/export_all_databases_service.js - About 1 hr to fix

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

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