Showing 215 of 375 total issues
Function loadStructure
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadStructure = function(tables, sqls) {
if (tables.length === 0) {
$("#findRowsWithTheValueDialog").modal("hide");
anyQueryExecuteService.showAndExecuteQueryPanel(
sqls.join(";\n"),
Function initializeRowsGrid
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var initializeRowsGrid = function() {
$scope.sortOptions = {
fields: [],
directions: [],
columns: []
Function set
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function(hostName, port, userName, password) {
var deferred = $q.defer();
chrome.storage.local.get("identities", function(items) {
var identities = items.identities || {};
if (getKeyLength(identities) >= 10) {
Function getShortPosition
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getShortPosition = function(source, target) {
var source1 = source.x;
var source2 = source.x + source.width;
var target1 = target.x;
var target2 = target.x + target.width;
Function getBasicPositionCalculator
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getBasicPositionCalculator = function(model) {
return (function(model) {
var startX = 30;
var startY = 30;
var offsetX = startX;
Function createSelectedQueryResultBlob
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var createSelectedQueryResultBlob = function() {
var lines = [];
var queryResult = querySelectionService.getQueryResult();
var columnDefinitions = queryResult.result.columnDefinitions;
var resultsetRows = queryResult.result.resultsetRows;
Function createInsertStatement
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createInsertStatement: function(table, values, valueTypes) {
var targetColumns = [];
var targetValues = [];
angular.forEach(values, function(value, columnName) {
var valueType = valueTypes[columnName];
Function EUCJPEncoder
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EUCJPEncoder(options) {
var fatal = options.fatal;
/**
* @param {ByteOutputStream} output_byte_stream Output byte stream.
* @param {CodePointInputStream} code_point_pointer Input stream.
Function doOpen
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var doOpen = function(activeTab) {
configurationService.getDatabaseInfoAutoUpdateSpan().then(function(span) {
$scope.databaseInfoAutoUpdateSpan = span / 1000;
return configurationService.getRowCountPerPageInRowsPanel();
}).then(function(rowCount) {
Function copyRow
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
copyRow: function(queryResult, row) {
var columnDefinitions = queryResult.columnDefinitions;
var resultsetRows = queryResult.resultsetRows;
var values = [];
angular.forEach(columnDefinitions, function(column, index) {
Function cps
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var cps = (/** @return {Array.<number>} Code points. */function() {
/** @type {Array.<number>} */
var cps = [];
// Based on http://www.w3.org/TR/WebIDL/#idl-DOMString
var i = 0, n = string.length;
Function EUCKREncoder
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EUCKREncoder(options) {
var fatal = options.fatal;
/**
* @param {ByteOutputStream} output_byte_stream Output byte stream.
* @param {CodePointInputStream} code_point_pointer Input stream.
Function assignEventHandlers
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var assignEventHandlers = function() {
$scope.$on(Events.CONNECTION_CHANGED, function(event, data) {
onConnectionChanged();
});
$scope.$on(Events.DATABASE_CHANGED, function(event, database) {
Function UTF16Encoder
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UTF16Encoder(utf16_be, options) {
var fatal = options.fatal;
/**
* @param {ByteOutputStream} output_byte_stream Output byte stream.
* @param {CodePointInputStream} code_point_pointer Input stream.
Function assignEventHandlers
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var assignEventHandlers = function() {
$scope.$on(Events.CONNECTION_CHANGED, function(event, data) {
onConnectionChanged();
});
$scope.$on(Events.MODE_CHANGED, function(event, mode) {
Function encode
has 26 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 doShowQueryResult
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var doShowQueryResult = function(index) {
resetQueryResultGrid();
var queryResult = $scope.queryResults[index];
querySelectionService.setQueryResult(queryResult);
$scope.selectedQuery = queryResult.query;
Function drawText
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var drawText = function(x, y, text, name, group, onDragHandler, onDragEndHandler, canvas) {
Avoid deeply nested control flow statements. Open
Open
if (typeService.isNumeric(typeName)) {
values.push(value);
} else {
values.push("'" + sqlExpressionService.replaceValue(value).replace(/\n/g, "\\n") + "'");
}
Function portForwarding
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
portForwarding: function(ssh2AuthType, ssh2Username, ssh2Password, serverHostname, serverPort, privateKey) {