Showing 203 of 447 total issues
Function ebus
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.ebus = new (function () {
this.events = {};
this.subscribe = function (event, callback, target) {
if (typeof this.events[event] === 'undefined') {
this.events[event] = [];
Function performResizing
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
performResizing: function (event) {
'use strict';
var self = event.data.self;
Function startTCPS
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.startTCPS = function (port, _onStart) {
console.log('startTCPS');
if (this.tcps.connected === true) return false;
console.log('Open Server at port ' + port);
this.tcps.port = parseInt(port);
Function inout
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.inout = function (n, direction, xi, yi) {
if (typeof xi === 'undefined') {
xi = 64;
}
if (typeof yi === 'undefined') {
Function _breadcrumbsJump
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _breadcrumbsJump(selectedItem) {
if (common.isEditingSubmodule) {
$log.error('Navigation while editing is not supported!');
return;
}
Function loadWire
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadWire(instance, source, target) {
// Find selectors
var sourceSelector, targetSelector;
var leftPorts = target.get('leftPorts');
var rightPorts = source.get('rightPorts');
Function showCollectionData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.showCollectionData = (collection) => {
const cname = collection.name;
$log.debug('[menu.showCollectionData] cname:', cname);
var readme = collection.content.readme;
$log.debug('[menu.showCollectionData] content:', collection.content);
Function renderPlug
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderPlug(connectionInfo) {
let configLe = document.getElementById('panel-config');
let xtermLe = document.getElementById('panel-xterm');
addClass(configLe, 'hidden');
removeClass(xtermLe, 'hidden');
Function _newCollection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _newCollection(name, path, children) {
var collection = _newEmptyCollection(name, path);
console.debug('[collections._newCollection] collection:', collection);
for (var child of children) {
console.debug(
Function place
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.place = function (block, x, y, x0, y0, w, h, padw, padh) {
Function editBasic
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function editBasic(type, cellView, callback) {
switch (type) {
case 'basic.input':
editBasicInput(cellView, callback);
break;
Function getNetworkInterfaces
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getNetworkInterfaces = function (callback) {
let ips = [];
let RTCPeerConnection =
window.RTCPeerConnection ||
window.webkitRTCPeerConnection ||
Function loadDesign
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.loadDesign = function (design, opt, callback) {
if (
design &&
design.graph &&
design.graph.blocks &&
Function newGeneric
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function newGeneric(type, block, callback) {
var blockInstance = {
id: null,
type: type,
position: {x: 0, y: 0},
Function launchPulseView
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function launchPulseView(env) {
console.log('Lanzando Pulseview');
let spawn = false;
let args = ['-i ' + captureFile + ' -I binary:samplerate=12000000 -c -D'];
switch (env) {
Function promptFactory
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.promptFactory = function (name, str, callback) {
//get the closable setting value.
let _currentFactory = this.plugins[name];
let excel = false;
let _this = this;
Function addDraggableCell
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addDraggableCell = function (cell) {
this.addingDraggableBlock = true;
var menuHeight = $('#menu').height();
cell.set('position', {
x:
Function computePortsMap
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function computePortsMap(upperBlock, lowerBlock, portType) {
var portsMap = {};
var usedUpperPorts = [];
var upperPorts = upperBlock.get(portType);
var lowerPorts = lowerBlock.get(portType);
Consider simplifying this complex logical expression. Open
Open
if (
cell.type === 'ice.Generic' ||
cell.type === 'ice.Input' ||
cell.type === 'ice.Output' ||
cell.type === 'ice.Code' ||
Consider simplifying this complex logical expression. Open
Open
if (
block.type !== 'basic.input' &&
block.type !== 'basic.output' &&
block.type !== 'basic.constant' &&
block.type !== 'basic.memory' &&