Showing 203 of 447 total issues
Function alphaNumSort
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function alphaNumSort(a, b) {
var regex = /[^\d]+|\d+/g;
// Split each name into alphabetical and numeric parts
var ar = a.match(regex);
Function setExternalCollections
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.setExternalCollections = () => {
var externalCollections = common.get('externalCollections');
utils.renderForm(
[
{
Function _load
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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++) {
Function _editModeToggle
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _editModeToggle() {
var block = graph.breadcrumbs[graph.breadcrumbs.length - 1];
var tmp = false;
const rw = common.isEditingSubmodule;
common.isEditingSubmodule = !rw;
Function setExternalPlugins
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.setExternalPlugins = () => {
var externalPlugins = common.get('externalPlugins');
utils.renderForm(
[
{
Function setApioRepo
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.setApioRepo = () => {
var apioRepo = common.get('apioRepo');
var apioRef = common.get('apioRef');
utils.renderForm(
[
Function _selectBoard
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _selectBoard(name) {
let board = undefined;
for (const val of common.boards) {
if (val.name === name) {
board = val;
Function load
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.load = function (callback) {
if (this.pluginDir === false) {
return false;
}
Function installCollection
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function installCollection(collection, zip) {
var i,
dest = '';
var pattern = RegExp('^' + collection.origName);
for (i in collection.blocks) {
Function onok
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onok: function () {
if (canCheckVersion) {
// checkForNewVersion
$.getJSON(
_package.repository.replace(
Function renderSerialDevices
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderSerialDevices(dev) {
let infoLe = document.getElementById('device-info');
let connectLe = document.getElementById('bt-connect');
addClass(connectLe, 'hidden');
Function setPythonEnv
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.setPythonEnv = function () {
let pythonEnv = common.get('pythonEnv');
let formSpecs = [
{
type: 'text',
Function copyIncludedFiles
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function copyIncludedFiles(files, origPath, destPath, callback) {
var success = true;
async.eachSeries(
files,
function (filename, next) {
Function findLowerBlock
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findLowerBlock(upperBlock) {
if (
upperBlock.get('type') === 'ice.Wire' ||
upperBlock.get('type') === 'ice.Info'
) {
Function executeLocal
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function executeLocal(commands) {
return new Promise(function (resolve) {
var command = common.ICETOOL.concat(commands)
.concat(['-p', `"${common.BUILD_DIR}"`])
.join(' ');
Function ice
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
joint.connectors.ice = function (sourcePoint, targetPoint, vertices) {
'use strict';
var points = [];
Function stopSelecting
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stopSelecting: function (evt) {
'use strict';
switch (this._action) {
case 'selecting':
Function getCollections
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getCollections(zipData) {
var data = '';
var _collections = {};
var zipEntries = zipData.getEntries();
Function pruneProject
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pruneProject(project) {
var _project = utils.clone(project);
_prune(_project);
for (var d in _project.dependencies) {
Function UploadCommand
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def UploadCommand(ctx, board, serial_port, ftdi_id, sram, flash, project_dir, verbose, verbose_yosys, verbose_pnr):