Showing 71 of 208 total issues
Function 22
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"a1atscript":1}],22:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
Function 19
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],19:[function(require,module,exports){
"use strict";
(function () {
Function xngToastService
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xngToastService($timeout, $$interimElement, $animate, $xngSwipe, Inflector) {
var factoryDef = {
onShow: onShow,
onRemove: onRemove,
Function 3
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"a1atscript":1}],3:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
Function RouteInitializer
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var RouteInitializer = (function () {
function RouteInitializer(componentMapper) {
_classCallCheck(this, RouteInitializer);
this.componentMapper = componentMapper;
Function xngToastService
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xngToastService($timeout, $$interimElement, $animate, $xngSwipe, Inflector) {
var factoryDef = {
onShow: onShow,
onRemove: onRemove,
Function 27
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"a1atscript":1}],27:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
Function 2
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],2:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
Function DirectiveObjectInjector
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DirectiveObjectInjector = (function (_ListInjector) {
_inherits(DirectiveObjectInjector, _ListInjector);
function DirectiveObjectInjector() {
_classCallCheck(this, DirectiveObjectInjector);
Function ErrorLimiter
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ErrorLimiter = (function () {
function ErrorLimiter(uiState, failsafeStateName) {
_classCallCheck(this, ErrorLimiter);
this.uiState = uiState;
Function InterimElementFactory
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
Open
function InterimElementFactory($q, $rootScope, $timeout, $rootElement, $animate, $xngCompiler) {
return function createInterimElementService(defaults) {
/**
- 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 uiRouteLogger
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uiRouteLogger($rootScope, $state, noTable) {
if (noTable) {
$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
/*jshint -W075 */
console.log("Routing Event", event.name);
Function uiRouteLogger
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function uiRouteLogger($rootScope, $state, noTable) {
if(noTable){
$rootScope.$on('$stateChangeStart', (event, toState, toParams, fromState, fromParams) => {
/*jshint -W075 */
console.log("Routing Event", event.name);
Function 13
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./responsive-menu.tpl.js":11,"a1atscript":1}],13:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
Function ComponentInjector
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ComponentInjector = (function (_ListInjector) {
_inherits(ComponentInjector, _ListInjector);
function ComponentInjector() {
_classCallCheck(this, ComponentInjector);
Function Inflector
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Inflector = (function () {
function Inflector() {
_classCallCheck(this, _Inflector);
}
Function 14
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"a1atscript":1}],14:[function(require,module,exports){
'use strict';
function xngCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
Function RouteReader
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var RouteReader = (function () {
function RouteReader(componentMapper) {
_classCallCheck(this, RouteReader);
this.componentMapper = componentMapper;
Function xngCompilerService
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xngCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
/**
* @ngdoc service
* @name $xngCompiler
Function xngCompilerService
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xngCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
/**
* @ngdoc service
* @name $xngCompiler