juanmard/icestudio

View on GitHub

Showing 203 of 447 total issues

Function alphaNumSort has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function alphaNumSort(a, b) {
        var regex = /[^\d]+|\d+/g;

        // Split each name into alphabetical and numeric parts
        var ar = a.match(regex);
Severity: Minor
Found in services/collections.js - About 1 hr to fix

    Function setExternalCollections has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          $scope.setExternalCollections = () => {
            var externalCollections = common.get('externalCollections');
            utils.renderForm(
              [
                {
    Severity: Minor
    Found in controllers/preferences.js - About 1 hr to fix

      Function _load has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function _load(reset, originalBoard) {
                common.allDependencies = project.dependencies;
                var opt = {reset: reset || false, disabled: false};
                if (originalBoard !== undefined && originalBoard !== false) {
                  for (var i = 0; i < common.boards.length; i++) {
      Severity: Minor
      Found in services/project.js - About 1 hr to fix

        Function _editModeToggle has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              function _editModeToggle() {
                var block = graph.breadcrumbs[graph.breadcrumbs.length - 1];
                var tmp = false;
                const rw = common.isEditingSubmodule;
                common.isEditingSubmodule = !rw;
        Severity: Minor
        Found in controllers/design.js - About 1 hr to fix

          Function setExternalPlugins has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                $scope.setExternalPlugins = () => {
                  var externalPlugins = common.get('externalPlugins');
                  utils.renderForm(
                    [
                      {
          Severity: Minor
          Found in controllers/preferences.js - About 1 hr to fix

            Function setApioRepo has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  $scope.setApioRepo = () => {
                    var apioRepo = common.get('apioRepo');
                    var apioRef = common.get('apioRef');
                    utils.renderForm(
                      [
            Severity: Minor
            Found in controllers/preferences.js - About 1 hr to fix

              Function _selectBoard has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function _selectBoard(name) {
                      let board = undefined;
                      for (const val of common.boards) {
                        if (val.name === name) {
                          board = val;
              Severity: Minor
              Found in controllers/menu.js - About 1 hr to fix

                Function load has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  this.load = function (callback) {
                    if (this.pluginDir === false) {
                      return false;
                    }
                
                
                Severity: Minor
                Found in iceplugmanager.js - About 1 hr to fix

                  Function installCollection has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function installCollection(collection, zip) {
                          var i,
                            dest = '';
                          var pattern = RegExp('^' + collection.origName);
                          for (i in collection.blocks) {
                  Severity: Minor
                  Found in services/tools.js - About 1 hr to fix

                    Function onok has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                              onok: function () {
                                if (canCheckVersion) {
                                  // checkForNewVersion
                                  $.getJSON(
                                    _package.repository.replace(
                    Severity: Minor
                    Found in controllers/menu.js - About 1 hr to fix

                      Function renderSerialDevices has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function renderSerialDevices(dev) {
                        let infoLe = document.getElementById('device-info');
                        let connectLe = document.getElementById('bt-connect');
                        addClass(connectLe, 'hidden');
                      
                      
                      Severity: Minor
                      Found in plugins/serial-term/js/main.js - About 1 hr to fix

                        Function setPythonEnv has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              $scope.setPythonEnv = function () {
                                let pythonEnv = common.get('pythonEnv');
                                let formSpecs = [
                                  {
                                    type: 'text',
                        Severity: Minor
                        Found in controllers/preferences.js - About 1 hr to fix

                          Function copyIncludedFiles has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                function copyIncludedFiles(files, origPath, destPath, callback) {
                                  var success = true;
                                  async.eachSeries(
                                    files,
                                    function (filename, next) {
                          Severity: Minor
                          Found in services/project.js - About 1 hr to fix

                            Function findLowerBlock has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function findLowerBlock(upperBlock) {
                                      if (
                                        upperBlock.get('type') === 'ice.Wire' ||
                                        upperBlock.get('type') === 'ice.Info'
                                      ) {
                            Severity: Minor
                            Found in services/graph.js - About 1 hr to fix

                              Function executeLocal has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    function executeLocal(commands) {
                                      return new Promise(function (resolve) {
                                        var command = common.ICETOOL.concat(commands)
                                          .concat(['-p', `"${common.BUILD_DIR}"`])
                                          .join(' ');
                              Severity: Minor
                              Found in services/tools.js - About 1 hr to fix

                                Function ice has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                joint.connectors.ice = function (sourcePoint, targetPoint, vertices) {
                                  'use strict';
                                
                                  var points = [];
                                
                                
                                Severity: Minor
                                Found in graphics/joint.connectors.js - About 1 hr to fix

                                  Function stopSelecting has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    stopSelecting: function (evt) {
                                      'use strict';
                                  
                                      switch (this._action) {
                                        case 'selecting':
                                  Severity: Minor
                                  Found in graphics/joint.selection.js - About 1 hr to fix

                                    Function getCollections has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          function getCollections(zipData) {
                                            var data = '';
                                            var _collections = {};
                                            var zipEntries = zipData.getEntries();
                                    
                                    
                                    Severity: Minor
                                    Found in services/tools.js - About 1 hr to fix

                                      Function pruneProject has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            function pruneProject(project) {
                                              var _project = utils.clone(project);
                                      
                                              _prune(_project);
                                              for (var d in _project.dependencies) {
                                      Severity: Minor
                                      Found in services/project.js - About 1 hr to fix

                                        Function UploadCommand has 10 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def UploadCommand(ctx, board, serial_port, ftdi_id, sram, flash, project_dir, verbose, verbose_yosys, verbose_pnr):
                                        Severity: Major
                                        Found in ICETool/__init__.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language