Showing 236 of 328 total issues
Function scanTemplate
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanTemplate() {
var cooked = '', ch, start, terminated, tail, restore, unescaped, code, octal;
terminated = false;
tail = false;
Function visitReactTag
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function visitReactTag(traverse, object, path, state) {
var jsxObjIdent = utils.getDocblock(state).jsx;
var openingElement = object.openingElement;
var nameObject = openingElement.name;
var attributesObject = openingElement.attributes;
Function scanStringLiteral
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanStringLiteral() {
var str = '', quote, start, ch, code, unescaped, restore, octal = false;
quote = source[index];
assert((quote === '\'' || quote === '"'),
Function 25
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../src/utils":20,"esprima-fb":6}],25:[function(_dereq_,module,exports){
/**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Class EndpointPresenter
has 30 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Lurker::EndpointPresenter < Lurker::BasePresenter
attr_accessor :service_presenter, :endpoint, :endpoint_presenter
extend Forwardable
def_delegators :endpoint, :url_params
Function 2
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"base64-js":2,"ieee754":3}],2:[function(_dereq_,module,exports){
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
;(function (exports) {
'use strict';
Function scanRegExp
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanRegExp() {
var str, ch, start, pattern, flags, value, classMarker = false, restore, terminated = false;
lookahead = null;
skipComment();
Function scanNumericLiteral
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanNumericLiteral() {
var number, start, ch, octal;
ch = source[index];
assert(isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'),
Function tokenize
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenize(code, options) {
var toString,
token,
tokens;
Function parse
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse(code, options) {
var program, toString;
toString = String;
if (typeof code !== 'string' && !(code instanceof String)) {
Function parseMethodDefinition
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseMethodDefinition(existingPropNames) {
var token, key, param, propType, isValidDuplicateProp = false;
if (lookahead.value === 'static') {
propType = ClassPropertyType["static"];
Function 3
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],3:[function(_dereq_,module,exports){
exports.read = function(buffer, offset, isLE, mLen, nBytes) {
var e, m,
eLen = nBytes * 8 - mLen - 1,
eMax = (1 << eLen) - 1,
Function parseForStatement
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseForStatement(opts) {
var init, test, update, left, right, body, operator, oldInIteration;
init = test = update = null;
expectKeyword('for');
Class Cli
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Cli < Thor
include Thor::Actions
attr_accessor :content
Function parseStatement
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseStatement() {
var type = lookahead.type,
expr,
labeledBody,
key;
Class Endpoint
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Endpoint
include Lurker::Utils
PREFIX = 'prefix'.freeze
ACTION = 'action'.freeze
Function skipComment
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipComment() {
var ch, blockComment, lineComment;
blockComment = false;
lineComment = false;
Function unpatch
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function unpatch() {
if (typeof extra.skipComment === 'function') {
skipComment = extra.skipComment;
}
Function _renderClassBody
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _renderClassBody(traverse, node, path, state) {
var className = state.className;
var superClass = state.superClass;
// Set up prototype of constructor on same line as `extends` for line-number
Function SourceNode_fromStringWithSourceMap
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer) {
// The SourceNode we want to fill with the generated code
// and the SourceMap
var node = new SourceNode();