Showing 245 of 1,712 total issues
File iterator.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(sc) {
"use strict";
require("./lang");
require("./dollar");
Function exports
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
"use strict";
var _ = require("underscore");
var path = require("path");
Function parseForStatement
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseForStatement() {
var init, test, update, left, right, body, oldInIteration;
init = test = update = null;
File Set_test.js
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
describe("Collections/Set", function() {
"use strict";
var testCase = sc.test.testCase;
var $$ = sc.test.object;
Function parseFunctionSourceElements
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseFunctionSourceElements() {
var sourceElement, sourceElements = [], token, directive, firstRestricted,
oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody;
delegate.markStart();
Function advanceSlash
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function advanceSlash() {
var prevToken,
checkToken;
// Using the following algorithm:
// https://github.com/mozilla/sweet.js/wiki/design
Function skipComment
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipComment() {
var ch, start;
start = (index === 0);
while (index < length) {
Function parseBinaryExpression
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseBinaryExpression() {
var marker, markers, expr, token, prec, stack, right, operator, left, i;
marker = createLocationMarker();
left = parseUnaryExpression();
Function generateNumber
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateNumber(value) {
var result, point, temp, exponent, pos;
if (value !== value) {
throw new Error('Numeric literal whose value is NaN');
}
Function parsePrimaryExpression
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parsePrimaryExpression() {
var type, token, expr;
if (match('(')) {
return parseGroupExpression();
Function parseParams
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseParams(firstRestricted) {
var param, params = [], token, stricted, paramSet, key, message;
expect('(');
if (!match(')')) {
Function f
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var f = $.Function(function(_) {
return [
function() {
return _.push(), $.Func(function() {
return $$(10);
Function skipMultiLineComment
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipMultiLineComment() {
var start, loc, ch, comment;
if (extra.comments) {
start = index - 2;
Function SourceMapGenerator_serializeMappings
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
var previousGeneratedColumn = 0;
var previousGeneratedLine = 1;
var previousOriginalColumn = 0;
var previousOriginalLine = 0;
Function selectParenthesesParseMethod
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ParenthesesParser.prototype.selectParenthesesParseMethod = function() {
if (this.lookahead.type === Token.Label || this.match(")")) {
return function() {
return this.parseEventExpression();
};
Function generateFunctionBody
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateFunctionBody(node) {
var result, i, len, expr, arrow;
arrow = node.type === Syntax.ArrowFunctionExpression;
if (arrow && node.params.length === 1 && node.params[0].type === Syntax.Identifier) {
result = [generateIdentifier(node.params[0])];
Function CallExpression
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CallExpression: function(node) {
if (node.callee.type !== "MemberExpression") {
return;
}
if (node.callee.property.type !== "Identifier") {
Function parseObjectProperty
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseObjectProperty() {
var token, key, id, value, param;
token = lookahead;
delegate.markStart();
Function generateSegmentedFunctionBodyElements
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateSegmentedFunctionBodyElements(that, node, args) {
var fargs = args.map(function(_, i) {
return "_arg" + i;
});
Function parseFunctionExpression
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseFunctionExpression() {
var token, id = null, stricted, firstRestricted, message, tmp, params = [], body, previousStrict;
delegate.markStart();
expectKeyword('function');