Showing 171 of 259 total issues
Function JSLINT
has a Cognitive Complexity of 2493 (exceeds 5 allowed). Consider refactoring. Open
Open
var JSLINT = (function () {
var adsafe_id, // The widget's ADsafe id.
adsafe_may, // The widget may load approved scripts.
adsafe_went, // ADSAFE.go has been called.
anonname, // The guessed name for anonymous functions.
- 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 CSSLint
has 5384 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CSSLint = (function(){
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Function JSLINT
has 4801 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var JSLINT = (function () {
var adsafe_id, // The widget's ADsafe id.
adsafe_may, // The widget may load approved scripts.
adsafe_went, // ADSAFE.go has been called.
anonname, // The guessed name for anonymous functions.
File csslint.js
has 5387 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
CSSLint
Copyright (c) 2013 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
File lint.js
has 4804 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// jslint.js
// 2010-02-20
/*
Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
Function prototype
has 1270 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Parser.prototype = function(){
var proto = new EventTarget(), //new prototype
prop,
additions = {
Function CSSLint
has a Cognitive Complexity of 247 (exceeds 5 allowed). Consider refactoring. Open
Open
var CSSLint = (function(){
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
- 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 lex
has 662 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lex = (function lex() {
var character, from, line, s;
// Private lex methods
Function token
has 556 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function () {
var b, c, captures, d, depth, high, i, l, low, q, t;
function match(x) {
var r = x.exec(s), r1;
Function html
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function html() {
var a, attributes, e, n, q, t, v, w = option.white, wmode;
xmode = 'html';
xquote = '';
stack = null;
Function init
has 152 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (parser, reporter) {
var rule = this,
compatiblePrefixes,
properties,
prop,
Function itself
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var itself = function (s, o) {
var a, i;
JSLINT.errors = [];
predefined = Object.create(standard);
if (o) {
Function PropertyValuePart
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PropertyValuePart(text, line, col){
SyntaxUnit.call(this, text, line, col, Parser.PROPERTY_VALUE_PART_TYPE);
/**
Function doTag
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doTag(n, a) {
var i, t = htmltag[n], x;
src = false;
if (!t) {
error("Unrecognized tag '<{a}>'.",
Function styleSelector
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function styleSelector() {
if (nexttoken.identifier) {
if (!is_own(htmltag, nexttoken.value)) {
warning("Expected a tagName, and instead saw {a}.",
nexttoken, nexttoken.value);
Function string
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function string(x) {
var c, j, r = '';
if (jsonmode && x !== '"') {
warningAt("Strings must use doublequote.",
Function CSSLint
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CSSLint = (function(){
var rules = [],
formatters = [],
embeddedRuleset = /\/\*csslint([^\*]*)\*\//,
Function report
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
itself.report = function (option) {
var data = itself.data();
var a = [], c, e, err, f, i, k, l, m = '', n, o = [], s;
Function _stylesheet
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_stylesheet: function(){
/*
* stylesheet
* : [ CHARSET_SYM S* STRING S* ';' ]?
Function init
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function(parser, reporter){
var rule = this,
properties,
num,
propertiesToCheck = {