Showing 623 of 1,229 total issues
Function _createOverview
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Overview.prototype._createOverview = function() {
var type, val, _ref;
this._templateDataParsed = this._parseDataForTemplate();
_ref = this._typePlurals;
for (type in _ref) {
Function _getTopMembers
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Overview.prototype._getTopMembers = function(collection, type, last) {
var _element, _foundCount, _foundSize, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _topcountkey, _topsizekey;
if (last) {
this._createOverview();
return;
Function resampleRecursive
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resampleRecursive(stream) {
var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
var resample = {
point: point,
lineStart: lineStart,
Function drag
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.drag = function() {
var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, d3_behavior_dragMouseSubject, "mousemove", "mouseup"), touchstart = dragstart(d3_behavior_dragTouchId, d3.touch, d3_behavior_dragTouchSubject, "touchmove", "touchend");
function drag() {
this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
}
Function graph
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function graph(ctx) {
var pack = d3.layout.squarepack();
// TODO access exposed variables.
Function exports
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
// Configure the project
grunt.initConfig({
jshint: {
client: ['public/js/main.js']
Function _getKeySizeAndType
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Overview.prototype._getKeySizeAndType = function(keys, last) {
var _collection, _commands, _i, _key, _len;
if (last) {
if (this._totalKeyAmount <= this._timesRequested * this.options.multiLength) {
this.lastKeySizeAndTypeRequest = false;
Function walkGraph
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walkGraph(ast) {
walk(ast, function(o) {
if(o.type) {
types[o.type] = {};
Function buildSubRegions
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
forceatlas2.Region.prototype.buildSubRegions = function() {
if (this.nodes.length > 1) {
var leftNodes = [],
rightNodes = [],
subregions = [],
Function d3_time_interval
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_time_interval(local, step, number) {
function round(date) {
var d0 = local(date), d1 = offset(d0, 1);
return date - d0 < d1 - date ? d0 : d1;
}
Function pie
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.pie = function() {
var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ;
function pie(data) {
var values = data.map(function(d, i) {
return +value.call(pie, d, i);
Function generateTests
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Timbit.prototype.generateTests = function(alltests) {
// create combination of required parameters
var required = [];
for (var name in this.params) {
Function tokenize
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenize( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var render = function(options) {
var config = Hash({
stylesheets: ['/endpoint/css/reset.css',
'/endpoint/css/style.css'],
render_view: __dirname + '/../../views/response.jade' }).
Function _doubleTapHandler
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _doubleTapHandler(e) {
var pos,
count,
ratio,
newRatio;
Function arrow
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.canvas.edges.arrow = function(edge, source, target, context, settings) {
var color = edge.color,
prefix = settings('prefix') || '',
edgeColor = settings('edgeColor'),
defaultNodeColor = settings('defaultNodeColor'),
Function path
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.geo.path = function() {
var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
function path(object) {
if (object) {
if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
Function test
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Timbit.prototype.test = function(host, alltests, callback) {
// generate dynamic list of test urls
var tests = this.generateTests(alltests);
Function select
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function select( selector, context, results, seed ) {
var i, tokens, token, type, find,
match = tokenize( selector );
if ( !seed ) {
Function register
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function register(name, fn, scope) {
function _register(name, fn, scope) {
var _scope = b.objectExpression([]);
if (scope) {