yoichiro/chrome_mysql_admin

View on GitHub

Showing 215 of 375 total issues

File encoding.js has 1859 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(global) {
  'use strict';

  //
  // Utilities
Severity: Major
Found in app/scripts/lib/encoding.js - About 5 days to fix

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

            controller: ["$scope", function($scope) {
                $scope.drawModel = function(model, element) {
                    if ($scope.positionProvider) {
                        $scope.positionProvider({
                            model: model,
    Severity: Major
    Found in app/scripts/window/directives/er_diagram.js - About 1 day to fix

      File er_diagram.js has 582 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function() {
          "use strict";
      
          // --- Model
      
      
      Severity: Major
      Found in app/scripts/window/directives/er_diagram.js - About 1 day to fix

        Function exports has 197 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function (grunt) {
            // show elapsed time at the end
            require('time-grunt')(grunt);
            // load all grunt tasks
            require('load-grunt-tasks')(grunt);
        Severity: Major
        Found in Gruntfile.js - About 7 hrs to fix

          File rows_panel_controller.js has 425 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          chromeMyAdmin.controller("RowsPanelController", function(
              $scope,
              mySQLClientService,
              modeService,
              targetObjectService,
          Severity: Minor
          Found in app/scripts/window/controllers/rows_panel_controller.js - About 6 hrs to fix

            File query_panel_controller.js has 389 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            chromeMyAdmin.controller("QueryPanelController", function(
                $scope,
                modeService,
                mySQLClientService,
                targetObjectService,
            Severity: Minor
            Found in app/scripts/window/controllers/query_panel_controller.js - About 5 hrs to fix

              Function ISO2022JPDecoder has 125 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

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

                    this.decode = function(byte_pointer) {
                      var bite = byte_pointer.get();
                      if (bite !== EOF_byte) {
                        byte_pointer.offset(1);
                      }
                Severity: Major
                Found in app/scripts/lib/encoding.js - About 4 hrs to fix

                  Function ISO2022KRDecoder has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    File structure_panel_controller.js has 334 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    chromeMyAdmin.controller("StructurePanelController", function(
                        $scope,
                        mySQLClientService,
                        modeService,
                        targetObjectService,
                    Severity: Minor
                    Found in app/scripts/window/controllers/structure_panel_controller.js - About 4 hrs to fix

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

                          this.decode = function(byte_pointer) {
                            var bite = byte_pointer.get();
                            if (bite !== EOF_byte) {
                              byte_pointer.offset(1);
                            }
                      Severity: Major
                      Found in app/scripts/lib/encoding.js - About 4 hrs to fix

                        File procedures_functions_panel_controller.js has 315 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        chromeMyAdmin.controller("ProceduresFunctionsPanelController", function(
                            $scope,
                            mySQLClientService,
                            modeService,
                            targetObjectService,

                          File constants.js has 295 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          chromeMyAdmin.constant("UIConstants", {
                              GRID_COLUMN_MAX_WIDTH: 150,
                              GRID_COLUMN_FONT_SIZE: 14,
                              GRID_ROW_HEIGHT: 25,
                              WINDOW_TITLE_PANEL_HEIGHT: 20,
                          Severity: Minor
                          Found in app/scripts/window/utils/constants.js - About 3 hrs to fix

                            Function GBKDecoder has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function GBKDecoder(gb18030, options) {
                                var fatal = options.fatal;
                                var /** @type {number} */ gbk_first = 0x00,
                                    /** @type {number} */ gbk_second = 0x00,
                                    /** @type {number} */ gbk_third = 0x00;
                            Severity: Major
                            Found in app/scripts/lib/encoding.js - About 3 hrs to fix

                              File mysql_client_service.js has 291 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              chromeMyAdmin.factory("mySQLClientService", function(
                                  $q,
                                  $rootScope
                              ) {
                                  "use strict";
                              Severity: Minor
                              Found in app/scripts/window/services/mysql_client_service.js - About 3 hrs to fix

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

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

                                  Function drawEntity has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              var drawEntity = function(model, entity, x, y, element) {
                                                  var canvas = getCanvas(element);
                                  
                                                  // Event handlers
                                                  var onDragHandler = (function(model, element) {
                                  Severity: Major
                                  Found in app/scripts/window/directives/er_diagram.js - About 2 hrs to fix

                                    Function editColumn has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $scope.editColumn = function() {
                                            if ($scope.type === "SET" || $scope.type === "ENUM") {
                                                if ($scope.setEnumValues.length === 0) {
                                                    $scope.errorMessage = "SET/ENUM type column must have one or more values.";
                                                    return;
                                    Severity: Major
                                    Found in app/scripts/window/controllers/edit_column_dialog_controller.js - About 2 hrs to fix

                                      File export_all_databases_service.js has 286 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      chromeMyAdmin.factory("exportAllDatabasesService", function(
                                          $rootScope,
                                          $q,
                                          Events,
                                          mySQLClientService,
                                      Severity: Minor
                                      Found in app/scripts/window/services/export_all_databases_service.js - About 2 hrs to fix

                                        Function addColumn has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            $scope.addColumn = function() {
                                                if ($scope.type === "SET" || $scope.type === "ENUM") {
                                                    if ($scope.setEnumValues.length === 0) {
                                                        $scope.errorMessage = "SET/ENUM type column must have one or more values.";
                                                        return;
                                        Severity: Major
                                        Found in app/scripts/window/controllers/add_column_dialog_controller.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language