Showing 171 of 259 total issues
Function _term
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_term: function(){
/*
* term
* : unary_operator?
Function advance
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function advance(id, t) {
switch (token.id) {
case '(number)':
if (nexttoken.id === '.') {
warning(
Function init
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function(parser, reporter){
var rule = this;
var headings = {
h1: 0,
Function init
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function(parser, reporter){
var rule = this,
lastRule;
function startRule(event){
Function get
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get: function(channel){
var tokenInfo = this._tokenData,
reader = this._reader,
value,
Function statement
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function statement(noindent) {
var i = indent, r, s = scope, t = nexttoken;
// We don't like the empty statement.
Function cssCounter
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cssCounter() {
if (nexttoken.identifier && nexttoken.value === 'counter') {
advance();
advance('(');
if (!nexttoken.identifier) {
Function _selector
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_selector: function(){
/*
* selector
* : simple_selector_sequence [ combinator simple_selector_sequence ]*
* ;
Function verify
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
api.verify = function(text, ruleset){
var i = 0,
len = rules.length,
reporter,
Function parse
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse(rbp, initial) {
var left;
if (nexttoken.id === '(end)') {
error("Unexpected early end of program.", token);
}
Function calculate
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Specificity.calculate = function(selector){
var i, len,
part,
b=0, c=0, d=0;
Function _ruleset
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_ruleset: function(){
/*
* ruleset
* : selectors_group
* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
Function _readDeclarations
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_readDeclarations: function(checkStart, readMargins){
/*
* Reads the pattern
* S* '{' S* declaration [ ';' S* declaration ]* '}' S*
* or
Function _declaration
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_declaration: function(){
/*
* declaration
* : property ':' S* expr prio?
Function varstatement
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function varstatement(prefix) {
// JavaScript does not have block scope. It only has function scope. So,
// declaring a variable in a block can have unexpected consequences.
Function _media_query
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_media_query: function(){
/*
* media_query
* : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
* | expression [ AND S* expression ]*
Function assignop
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function assignop(s, f) {
symbol(s, 20).exps = true;
return infix(s, function (left, that) {
var l;
that.left = left;
Function it
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function it(type, value) {
var i, t;
if (type === '(color)') {
t = {type: type};
} else if (type === '(punctuator)' ||
Function init
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function(parser, reporter){
var rule = this,
classes = {};
parser.addListener("startrule", function(event){
Function styleAttribute
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function styleAttribute() {
var v;
while (nexttoken.id === '*' || nexttoken.id === '#' ||
nexttoken.value === '_') {
if (!option.css) {