juanmard/icestudio

View on GitHub

Showing 203 of 447 total issues

Function ebus has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  this.ebus = new (function () {
    this.events = {};
    this.subscribe = function (event, callback, target) {
      if (typeof this.events[event] === 'undefined') {
        this.events[event] = [];
Severity: Minor
Found in iceplugmanager.js - About 1 hr to fix

    Function performResizing has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      performResizing: function (event) {
        'use strict';
    
        var self = event.data.self;
    
    
    Severity: Minor
    Found in graphics/joint.shapes.js - About 1 hr to fix

      Function startTCPS has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      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);
      Severity: Minor
      Found in plugins/icerok/js/iceRok.js - About 1 hr to fix

        Function inout has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            this.inout = function (n, direction, xi, yi) {
              if (typeof xi === 'undefined') {
                xi = 64;
              }
              if (typeof yi === 'undefined') {
        Severity: Minor
        Found in iceplugmanager.js - About 1 hr to fix

          Function _breadcrumbsJump has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function _breadcrumbsJump(selectedItem) {
                  if (common.isEditingSubmodule) {
                    $log.error('Navigation while editing is not supported!');
                    return;
                  }
          Severity: Minor
          Found in controllers/design.js - About 1 hr to fix

            Function loadWire has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function loadWire(instance, source, target) {
                  // Find selectors
                  var sourceSelector, targetSelector;
                  var leftPorts = target.get('leftPorts');
                  var rightPorts = source.get('rightPorts');
            Severity: Minor
            Found in services/blocks.js - About 1 hr to fix

              Function showCollectionData has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              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);
              Severity: Minor
              Found in controllers/preferences.js - About 1 hr to fix

                Function renderPlug has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function renderPlug(connectionInfo) {
                  let configLe = document.getElementById('panel-config');
                  let xtermLe = document.getElementById('panel-xterm');
                  addClass(configLe, 'hidden');
                  removeClass(xtermLe, 'hidden');
                Severity: Minor
                Found in plugins/serial-term/js/main.js - About 1 hr to fix

                  Function _newCollection has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function _newCollection(name, path, children) {
                          var collection = _newEmptyCollection(name, path);
                          console.debug('[collections._newCollection] collection:', collection);
                          for (var child of children) {
                            console.debug(
                  Severity: Minor
                  Found in services/collections.js - About 1 hr to fix

                    Function place has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        this.place = function (block, x, y, x0, y0, w, h, padw, padh) {
                    Severity: Major
                    Found in iceplugmanager.js - About 1 hr to fix

                      Function editBasic has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function editBasic(type, cellView, callback) {
                            switch (type) {
                              case 'basic.input':
                                editBasicInput(cellView, callback);
                                break;
                      Severity: Minor
                      Found in services/blocks.js - About 1 hr to fix

                        Function getNetworkInterfaces has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          this.getNetworkInterfaces = function (callback) {
                            let ips = [];
                            let RTCPeerConnection =
                              window.RTCPeerConnection ||
                              window.webkitRTCPeerConnection ||
                        Severity: Minor
                        Found in plugins/icerok/js/iceRok.js - About 1 hr to fix

                          Function loadDesign has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                this.loadDesign = function (design, opt, callback) {
                                  if (
                                    design &&
                                    design.graph &&
                                    design.graph.blocks &&
                          Severity: Minor
                          Found in services/graph.js - About 1 hr to fix

                            Function newGeneric has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function newGeneric(type, block, callback) {
                                  var blockInstance = {
                                    id: null,
                                    type: type,
                                    position: {x: 0, y: 0},
                            Severity: Minor
                            Found in services/blocks.js - About 1 hr to fix

                              Function launchPulseView has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function launchPulseView(env) {
                                console.log('Lanzando Pulseview');
                                let spawn = false;
                                let args = ['-i ' + captureFile + ' -I binary:samplerate=12000000 -c -D'];
                                switch (env) {
                              Severity: Minor
                              Found in plugins/icerok/js/index.js - About 1 hr to fix

                                Function promptFactory has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  this.promptFactory = function (name, str, callback) {
                                    //get the closable setting value.
                                    let _currentFactory = this.plugins[name];
                                    let excel = false;
                                    let _this = this;
                                Severity: Minor
                                Found in iceplugmanager.js - About 1 hr to fix

                                  Function addDraggableCell has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        this.addDraggableCell = function (cell) {
                                          this.addingDraggableBlock = true;
                                          var menuHeight = $('#menu').height();
                                          cell.set('position', {
                                            x:
                                  Severity: Minor
                                  Found in services/graph.js - About 1 hr to fix

                                    Function computePortsMap has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function computePortsMap(upperBlock, lowerBlock, portType) {
                                              var portsMap = {};
                                              var usedUpperPorts = [];
                                              var upperPorts = upperBlock.get(portType);
                                              var lowerPorts = lowerBlock.get(portType);
                                    Severity: Minor
                                    Found in services/graph.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                if (
                                                  cell.type === 'ice.Generic' ||
                                                  cell.type === 'ice.Input' ||
                                                  cell.type === 'ice.Output' ||
                                                  cell.type === 'ice.Code' ||
                                      Severity: Major
                                      Found in services/utils.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if (
                                                  block.type !== 'basic.input' &&
                                                  block.type !== 'basic.output' &&
                                                  block.type !== 'basic.constant' &&
                                                  block.type !== 'basic.memory' &&
                                        Severity: Major
                                        Found in services/compiler.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language