Showing 215 of 375 total issues
File encoding.js
has 1859 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(global) {
'use strict';
//
// Utilities
Function controller
has 352 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ["$scope", function($scope) {
$scope.drawModel = function(model, element) {
if ($scope.positionProvider) {
$scope.positionProvider({
model: model,
File er_diagram.js
has 582 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
"use strict";
// --- Model
Function exports
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
File rows_panel_controller.js
has 425 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.controller("RowsPanelController", function(
$scope,
mySQLClientService,
modeService,
targetObjectService,
File query_panel_controller.js
has 389 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.controller("QueryPanelController", function(
$scope,
modeService,
mySQLClientService,
targetObjectService,
Function ISO2022JPDecoder
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ISO2022JPDecoder(options) {
var fatal = options.fatal;
/** @enum */
var state = {
ASCII: 0,
Function decode
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.decode = function(byte_pointer) {
var bite = byte_pointer.get();
if (bite !== EOF_byte) {
byte_pointer.offset(1);
}
Function ISO2022KRDecoder
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ISO2022KRDecoder(options) {
var fatal = options.fatal;
/** @enum */
var state = {
ASCII: 0,
File structure_panel_controller.js
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.controller("StructurePanelController", function(
$scope,
mySQLClientService,
modeService,
targetObjectService,
Function decode
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.decode = function(byte_pointer) {
var bite = byte_pointer.get();
if (bite !== EOF_byte) {
byte_pointer.offset(1);
}
File procedures_functions_panel_controller.js
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.controller("ProceduresFunctionsPanelController", function(
$scope,
mySQLClientService,
modeService,
targetObjectService,
File constants.js
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.constant("UIConstants", {
GRID_COLUMN_MAX_WIDTH: 150,
GRID_COLUMN_FONT_SIZE: 14,
GRID_ROW_HEIGHT: 25,
WINDOW_TITLE_PANEL_HEIGHT: 20,
Function GBKDecoder
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
File mysql_client_service.js
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.factory("mySQLClientService", function(
$q,
$rootScope
) {
"use strict";
Function decode
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function drawEntity
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var drawEntity = function(model, entity, x, y, element) {
var canvas = getCanvas(element);
// Event handlers
var onDragHandler = (function(model, element) {
Function editColumn
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
File export_all_databases_service.js
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
chromeMyAdmin.factory("exportAllDatabasesService", function(
$rootScope,
$q,
Events,
mySQLClientService,
Function addColumn
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;