Showing 306 of 628 total issues
File virtual_from_version.rb
has 7144 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
BPIDResolver::VIRTUAL_FROM_VERSION = {
"old:virtual_from_version:40876" => 1048,
"old:virtual_from_version:44059" => 1125,
"old:virtual_from_version:46266" => 1172,
"old:virtual_from_version:44870" => 1077,
File angular-animate.js
has 1105 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.3.5
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
File angular-mocks.js
has 946 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.3.5
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
File bp_admin.js
has 867 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Created by mdorf on 3/27/15.
* Updated by Syphax.Bouazzouni on 28/04/21 , users admin part
*/
File lunr.js
has 863 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.5.6
* Copyright (C) 2014 Oliver Nightingale
* MIT Licensed
* @license
Function bp_autocomplete
has 371 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.bp_autocomplete = function(input, options) {
// Create a link to self
var me = this;
// Create jQuery object for input element
Function bp_autocomplete
has 371 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.bp_autocomplete = function(input, options) {
// Create a link to self
var me = this;
// Create jQuery object for input element
Function NCBOTree
has 370 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.NCBOTree = function(opt) {
var OPTIONS;
var ROOT_ID = "roots";
OPTIONS = {
Function bioportal_autocomplete
has 366 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.bioportal_autocomplete = function(input, options) {
// Create a link to self
var me = this;
// Create jQuery object for input element
File bp_annotatorplus.js
has 717 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var
bp_last_params = null,
annotationsTable = null,
annotator_ontologies = null;
Function NCBOTree
has 309 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var NCBOTree = function(element, opt) {
var _this = this;
var OPTIONS;
var ROOT_ID = "roots";
var mousePressed = false;
Function NCBOTree
has 309 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var NCBOTree = function(element, opt) {
var _this = this;
var OPTIONS;
var ROOT_ID = "roots";
var mousePressed = false;
Function NCBOTree
has 309 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var NCBOTree = function(element, opt) {
var _this = this;
var OPTIONS;
var ROOT_ID = "roots";
var mousePressed = false;
Function app
has a Cognitive Complexity of 74 (exceeds 5 allowed). Consider refactoring. Open
Open
.controller('OntologyList', ['$scope', '$animate', '$timeout', function($scope, $animate, $timeout) {
// Default values
$scope.visible_ont_count = 0;
$scope.ontology_sort_order = "-popularity";
$scope.previous_sort_order = "-popularity";
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File bp_annotator.js
has 633 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var
bp_last_params = null,
annotationsTable = null,
annotator_ontologies = null;
Function NCBOAutocomplete
has 268 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.NCBOAutocomplete = function(settings) {
var defaults = {
url: '',
data: [],
minCharacters: 1,
Function app
has 251 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.controller('OntologyList', ['$scope', '$animate', '$timeout', function($scope, $animate, $timeout) {
// Default values
$scope.visible_ont_count = 0;
$scope.ontology_sort_order = "-popularity";
$scope.previous_sort_order = "-popularity";
Function NCBOPropertyTree
has 240 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var NCBOPropertyTree = function(element, opt) {
var obj = this;
var OPTIONS;
var ROOT_ID = "roots";
Function $RouteProvider
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $RouteProvider() {
function inherit(parent, extra) {
return angular.extend(Object.create(parent), extra);
}
File acronym_from_virtual.rb
has 535 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
BPIDResolver::ACRONYM_FROM_VIRTUAL = {
"old:acronym_from_virtual:3013" => "DIAGONT",
"old:acronym_from_virtual:3245" => "SuicidO",
"old:acronym_from_virtual:1247" => "GEOSPECIES",
"old:acronym_from_virtual:1054" => "AMINO-ACID",