Showing 215 of 375 total issues
Function CodePointInputStream
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CodePointInputStream(string) {
/** @type {number} */
var pos = 0;
/** @type {Array.<number>} */
var cps = (/** @return {Array.<number>} Code points. */function() {
Function encode
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
}
Function UTF16Decoder
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UTF16Decoder(utf16_be, options) {
var fatal = options.fatal;
var /** @type {?number} */ utf16_lead_byte = null,
/** @type {?number} */ utf16_lead_surrogate = null;
/**
Function updateRow
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.updateRow = function() {
resetErrorMessage();
var sql = "UPDATE `" + targetObjectService.getTable().name + "` ";
var sets = [];
angular.forEach($scope.values, function(value, columnName) {
Function encode
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
}
Function startPortForwarding
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
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];
Function ShiftJISDecoder
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ShiftJISDecoder(options) {
var fatal = options.fatal;
var /** @type {number} */ shiftjis_lead = 0x00;
/**
* @param {ByteInputStream} byte_pointer
Function decode
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function controller
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ["$scope", "GraphTypes", function($scope, GraphTypes) {
this.assignEventHandlers = function(scope, element) {
window.addEventListener("resize", function(e) {
scope.replot();
});
Function parseForeignKeysFromCreateTableDdl
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var parseForeignKeysFromCreateTableDdl = function(ddl) {
var result = [];
var lines = ddl.split("\n");
angular.forEach(lines, function(line) {
line = line.trim();
Function loadStructure
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadStructure = function(tables, sqls) {
if (tables.length === 0) {
$("#findSameRowsDialog").modal("hide");
anyQueryExecuteService.showAndExecuteQueryPanel(
sqls.join(";\n"),
Function assignEventHandlers
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var assignEventHandlers = function() {
$scope.$on(Events.FAVORITE_SELECTED, function(event, favorite) {
$scope.safeApply(function() {
$scope.name = favorite.name;
$scope.hostName = favorite.hostName;
Function assignEventHandlers
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var assignEventHandlers = function() {
$scope.$on(Events.MODE_CHANGED, function(event, mode) {
onModeChanged(mode);
});
$scope.$on(Events.CONNECTION_CHANGED, function(event, data) {
Function decode
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.decode = function(byte_pointer) {
var bite = byte_pointer.get();
if (bite === EOF_byte && shiftjis_lead === 0x00) {
return EOF_code_point;
}
Function decode
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function onShowDialog
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var onShowDialog = function() {
resetErrorMessage();
$scope.matchingType = "Full";
$scope.removeEmptyResult = "true";
var table = targetObjectService.getTable();
Function compile
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attrs) {
setJCanvasDefaults();
return function(scope, element, attrs, ctrl) {
scope.$watch("model", (function(element) {
return function(newVal, oldVal) {
Function HZGB2312Encoder
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HZGB2312Encoder(options) {
var fatal = options.fatal;
var hzgb2312 = false;
/**
* @param {ByteOutputStream} output_byte_stream Output byte stream.
Function getProcedureParameters
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
var executeProcedure = function(selectedRoutine) {
if (selectedRoutine.entity.ROUTINE_TYPE !== "PROCEDURE") {
return;
}
getRoutineCode(selectedRoutine).then(function(routineCode) {