Showing 260 of 474 total issues
Function CustomSelect
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ColumnView.prototype.CustomSelect = (function() {
"use strict";
var indexOf = Array.prototype.indexOf;
Function toMarkdown
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
Open
var toMarkdown = function(string) {
var ELEMENTS = [
{
patterns: 'p',
- 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 infobox.js
has 384 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
$(function(){
// http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/reference.html
/**
* @name InfoBox
Function Callbacks
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.Callbacks = function( options ) {
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
options = typeof options === "string" ?
Consider simplifying this complex logical expression. Open
Open
if ( event.pageX == null && original.clientX != null ) {
eventDoc = event.target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
Function convert_tree_to_html
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function convert_tree_to_html( tree, references, options ) {
var i;
options = options || {};
// shallow clone
Function parse
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function parse(input) {
var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
this.lexer.setInput(input);
this.lexer.yy = this.yy;
this.yy.lexer = this.lexer;
Function CustomSelect
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
ColumnView.prototype.CustomSelect = (function() {
"use strict";
var indexOf = Array.prototype.indexOf;
- 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 defaultPrefilter
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defaultPrefilter( elem, props, opts ) {
var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
anim = this,
style = elem.style,
orig = {},
Function submitOperation
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OperationView.prototype.submitOperation = function(e) {
var bodyParam, error_free, form, headerParams, invocationUrl, isFileUpload, map, o, obj, param, paramContentTypeField, responseContentTypeField, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2,
_this = this;
if (e != null) {
e.preventDefault();
Function trigger
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
// Don't do events on text and comment nodes
if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
return;
}
Function send
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
send: function( headers, complete ) {
// Get a new xhr
var handle, i,
xhr = s.xhr();
Function Layouter
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Layouter = (function () {
function Layouter(options) {
_classCallCheck(this, Layouter);
this.startHour = options.startHour;
Function anonymous
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
var $0 = $$.length - 1;
switch (yystate) {
case 1: return $$[$0-1];
Function showEditor
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, showEditor: function() {
var instance = this,
textarea,
ns = this.$ns,
container = this.$element,
Function clean
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clean: function( elems, context, fragment, scripts ) {
var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
safe = context === document && safeFragment,
ret = [];
Class Event
has 28 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Event < ActiveRecord::Base
include PgSearch
include ActionView::Helpers::TextHelper
include ActionView::Helpers::UrlHelper
Function Animation
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Animation( elem, properties, options ) {
var result,
index = 0,
tweenerIndex = 0,
length = animationPrefilters.length,
Function _renderCalendar
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderCalendar : function() {
var $calendarContainer, calendarNavHtml, calendarHeaderHtml, calendarBodyHtml, $weekDayColumns;
var self = this;
var options = this.options;
Function SwaggerOperation
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, notes, responseClass, errorResponses, resource, supportedContentTypes) {
var parameter, v, _i, _j, _len, _len1, _ref, _ref1, _ref2,
_this = this;
this.nickname = nickname;
this.path = path;