Showing 623 of 1,229 total issues
File d3.js
has 9223 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
!function() {
var d3 = {
version: "3.4.11"
};
if (!Date.now) Date.now = function() {
File jquery.js
has 6570 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
File bootstrap.js
has 1517 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* ===================================================
* bootstrap-transition.js v2.3.2
* http://getbootstrap.com/2.3.2/javascript.html#transitions
* ===================================================
* Copyright 2013 Twitter, Inc.
Function ForceAtlas2
has 630 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
forceatlas2.ForceAtlas2 = function(graph, options) {
var self = this;
this.graph = graph;
this.p = sigma.utils.extend(
Function expose
has a Cognitive Complexity of 153 (exceeds 5 allowed). Consider refactoring. Open
Open
var expose = function(model, schema, opts) {
var liveQueries = {};
var modelName = model.modelName;
- 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
Function expose
has 505 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var expose = function(model, schema, opts) {
var liveQueries = {};
var modelName = model.modelName;
File index-flx.js
has 887 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var flx = require('flx');
(function () {
var app, bodyparser, e, express, extend, hbs, ov, ovOptions, overview, redis, rediscli, _defaults;
Function exports
has 404 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
var app = express(),
safeUserFields = config.safeUserFields ? config.safeUserFields : "name email roles",
db;
File sigma.layout.forceAtlas2.js
has 805 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Mathieu Jacomy @ Sciences Po Médialab & WebAtlas
* (requires sigma.js to be loaded)
*/
;(function(undefined) {
File keyoverview.js
has 755 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
var Overview, StringDecoder, eventemitter, exec, fs, hbs, sd, _,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Function touch
has 285 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.captors.touch = function(target, camera, settings) {
var _self = this,
_target = target,
_camera = camera,
_settings = settings,
Function brush
has 277 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.brush = function() {
var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
function brush(g) {
g.each(function() {
var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
Function atomicGo
has 255 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.atomicGo = function() {
var i,
n,
e,
l,
Function zoom
has 246 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.zoom = function() {
var view = {
x: 0,
y: 0,
k: 1
Function ajax
has 241 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function( url, options ) {
// If url is an object, simulate pre-1.5 signature
if ( typeof url === "object" ) {
options = url;
Function reduce
has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring. Open
Open
function reduce(tree) {
// _down = {};
// _up = {}
- 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
Function setDocument
has 230 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setDocument = Sizzle.setDocument = function( node ) {
var doc = node ? node.ownerDocument || node : preferredDoc;
// If no document and documentElement is available, return
if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
Function mouse
has 224 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.captors.mouse = function(target, camera, settings) {
var _self = this,
_target = target,
_camera = camera,
_settings = settings,
Function d3_locale_timeFormat
has 213 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_locale_timeFormat(locale) {
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
function d3_time_format(template) {
var n = template.length;
function format(date) {
File mr-rpc-methods.js
has 519 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var _ = require('lodash');
var Promise = require('bluebird');
var eventNames = require('./schema-events').eventNames;
var queryBuilder = require('./query-builder');
var populateWithClientQuery = require('./utils/populate-doc-util');