Showing 255 of 255 total issues
File handlebars-4.0.5.js
has 3341 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
handlebars v4.0.5
Copyright (C) 2011-2015 by Yehuda Katz
File es5-shim.js
has 1509 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/
Function handlebars
has 698 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var handlebars = (function () {
var parser = { trace: function trace() {},
yy: {},
symbols_: { "error": 2, "root": 3, "program": 4, "EOF": 5, "program_repetition0": 6, "statement": 7, "mustache": 8, "block": 9, "rawBlock": 10, "partial": 11, "partialBlock": 12, "content": 13, "COMMENT": 14, "CONTENT": 15, "openRawBlock": 16, "rawBlock_repetition_plus0": 17, "END_RAW_BLOCK": 18, "OPEN_RAW_BLOCK": 19, "helperName": 20, "openRawBlock_repetition0": 21, "openRawBlock_option0": 22, "CLOSE_RAW_BLOCK": 23, "openBlock": 24, "block_option0": 25, "closeBlock": 26, "openInverse": 27, "block_option1": 28, "OPEN_BLOCK": 29, "openBlock_repetition0": 30, "openBlock_option0": 31, "openBlock_option1": 32, "CLOSE": 33, "OPEN_INVERSE": 34, "openInverse_repetition0": 35, "openInverse_option0": 36, "openInverse_option1": 37, "openInverseChain": 38, "OPEN_INVERSE_CHAIN": 39, "openInverseChain_repetition0": 40, "openInverseChain_option0": 41, "openInverseChain_option1": 42, "inverseAndProgram": 43, "INVERSE": 44, "inverseChain": 45, "inverseChain_option0": 46, "OPEN_ENDBLOCK": 47, "OPEN": 48, "mustache_repetition0": 49, "mustache_option0": 50, "OPEN_UNESCAPED": 51, "mustache_repetition1": 52, "mustache_option1": 53, "CLOSE_UNESCAPED": 54, "OPEN_PARTIAL": 55, "partialName": 56, "partial_repetition0": 57, "partial_option0": 58, "openPartialBlock": 59, "OPEN_PARTIAL_BLOCK": 60, "openPartialBlock_repetition0": 61, "openPartialBlock_option0": 62, "param": 63, "sexpr": 64, "OPEN_SEXPR": 65, "sexpr_repetition0": 66, "sexpr_option0": 67, "CLOSE_SEXPR": 68, "hash": 69, "hash_repetition_plus0": 70, "hashSegment": 71, "ID": 72, "EQUALS": 73, "blockParams": 74, "OPEN_BLOCK_PARAMS": 75, "blockParams_repetition_plus0": 76, "CLOSE_BLOCK_PARAMS": 77, "path": 78, "dataName": 79, "STRING": 80, "NUMBER": 81, "BOOLEAN": 82, "UNDEFINED": 83, "NULL": 84, "DATA": 85, "pathSegments": 86, "SEP": 87, "$accept": 0, "$end": 1 },
terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
File marked.js
has 901 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
Function lexer
has 316 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lexer = (function () {
var lexer = { EOF: 1,
parseError: function parseError(str, hash) {
if (this.yy.parser) {
this.yy.parser.parseError(str, hash);
Function anonymous
has 243 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$
/**/) {
var $0 = $$.length - 1;
switch (yystate) {
Function token
has 213 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Lexer.prototype.token = function(src, top, bq) {
var src = src.replace(/^ +$/gm, '')
, next
, loose
, cap
File ConnectorServiceImpl.java
has 475 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
package io.algobox.connector.service.impl;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
Function anonymous
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lexer.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START
/**/) {
function strip(start, end) {
return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng - end);
Function handleLogin
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleLogin() {
var scopes = [];
var auths = window.swaggerUi.api.authSchemes || window.swaggerUi.api.securityDefinitions;
if(auths) {
Function template
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function template(templateSpec, env) {
/* istanbul ignore next */
if (!env) {
throw new _exception2['default']('No environment passed to template');
}
Function handleLogin
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
Open
function handleLogin() {
var scopes = [];
var auths = window.swaggerUi.api.authSchemes || window.swaggerUi.api.securityDefinitions;
if(auths) {
- 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 parse
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function parse(input) {
var self = this,
stack = [0],
vstack = [null],
lstack = [],
Function compile
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function compile(environment, options, context, asObject) {
this.environment = environment;
this.options = options;
this.stringParams = this.options.stringParams;
this.trackIds = this.options.trackIds;
Function output
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
InlineLexer.prototype.output = function(src) {
var out = ''
, link
, text
, href
File OandaOrderService.java
has 331 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
package io.algobox.connector.oanada;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
Function tok
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Parser.prototype.tok = function() {
switch (this.token.type) {
case 'space': {
return '';
}
Method loadStrategies
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
private Map<String, Class<? extends Strategy>> loadStrategies(
String strategiesJarPath, boolean loadDummyByDefault) throws Exception {
checkArgument(strategiesJarPath.startsWith("/"),
String.format("Strategies jar folder [%s] should start with /.", strategiesJarPath));
- 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 swagger-oauth.js
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var appName;
var popupMask;
var popupDialog;
var clientId;
var realm;
File StrategyServiceImpl.java
has 297 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
package io.algobox.api.module.strategy.service.impl;
import avro.shaded.com.google.common.base.Joiner;
import avro.shaded.com.google.common.collect.ImmutableSet;
import avro.shaded.com.google.common.collect.Maps;