Showing 206 of 270 total issues
File client.js
has 2620 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
Function exports
has a Cognitive Complexity of 123 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function(ss,options) {
var proto = require('./proto')(ss, bundlers, bundlerById, options),
compressor = uglifyjs.Compressor({warnings:false});
- 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 google-code-prettify.js
has 934 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Function exports
has 392 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function(ss,options) {
var proto = require('./proto')(ss, bundlers, bundlerById, options),
compressor = uglifyjs.Compressor({warnings:false});
File marked.js
has 815 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* marked - a markdown parser
* Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
Function exports
has a Cognitive Complexity of 84 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function(ss, bundlers, bundlerById, options) {
return {
/**
* @ngdoc method
- 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 DocsController
has 230 lines of code (exceeds 25 allowed). Consider refactoring. Open
docsApp.controller.DocsController = function($scope, $location, $window, sections) {
var INDEX_PATH = /^(\/|\/index[^\.]*.html)$/,
GLOBALS = /^angular\.([^\.]+)$/,
MODULE = /^([^\.]+)$/,
MODULE_MOCK = /^angular\.mock\.([^\.]+)$/,
Function DocsController
has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring. Open
docsApp.controller.DocsController = function($scope, $location, $window, sections) {
var INDEX_PATH = /^(\/|\/index[^\.]*.html)$/,
GLOBALS = /^angular\.([^\.]+)$/,
MODULE = /^([^\.]+)$/,
MODULE_MOCK = /^angular\.mock\.([^\.]+)$/,
- 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 docs-setup.js
has 526 lines of code (exceeds 250 allowed). Consider refactoring. Open
NG_DOCS={
"sections": {
"tutorials": "Tutorials",
"api": "API Documentation",
"demos": "Demos"
Function token
has 213 lines of code (exceeds 25 allowed). Consider refactoring. Open
Lexer.prototype.token = function(src, top) {
var src = src.replace(/^ +$/gm, '')
, next
, loose
, cap
Function exports
has 187 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function(ss, bundlers, bundlerById, options) {
return {
/**
* @ngdoc method
Function combinePrefixPatterns
has 186 lines of code (exceeds 25 allowed). Consider refactoring. Open
function combinePrefixPatterns(regexs) {
var capturedGroupIndex = 0;
var needToFoldCase = false;
var ignoreCase = false;
Function exports
has 172 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function(grunt) {
'use strict';
var sh = require('shelljs');
File docs.js
has 441 lines of code (exceeds 250 allowed). Consider refactoring. Open
var docsApp = {
controller: {},
directive: {},
serviceFactory: {}
};
File index.js
has 424 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Client-Side Bundler of assets in development and production
'use strict';
var fs = require('fs'),
path = require('path'),
Function generate
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.generate = function(program) {
var appjs,
codeExtension = program.coffee && 'coffee' || 'js',
selectedFormatters = [],
Function tabbable
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
directive.tabbable = function() {
return {
restrict: 'C',
compile: function(element) {
var navTabs = angular.element('<ul class="nav nav-tabs"></ul>'),
- 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 exports
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function(ss) {
// make bundler methods available for default and other implementations
ss.bundler = require('./bundler/index')(ss,options);
// extend http response API
Function exports
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function(ss,options) {
var mods = [];
// Set the Default Engine - simply wraps each template in a <script> tag
var defaultEngine = require('./template_engines/default')(ss.root,null,options);
- 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 tok
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Parser.prototype.tok = function() {
switch (this.token.type) {
case 'space': {
return '';
}