src/scripts/config/routes.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 50
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 2
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 50
rs 10
bpm 1
cpm 1
noi 0
c 1
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A angular.run 0 3 1
B angular.config 0 39 1
1
'use strict';
2
3
angular
4
  .module('game')
5
  .config(['$stateProvider',
6
    function($stateProvider) {
7
      $stateProvider
8
        .state('generators', {
9
          component: 'generators'
10
        })
11
        .state('redox', {
12
          component: 'redox'
13
        })
14
        .state('reactions', {
15
          component: 'reactions'
16
        })
17
        .state('fusion', {
18
          component: 'fusion'
19
        })
20
        .state('upgrades', {
21
          component: 'upgrades'
22
        })
23
        .state('exotic', {
24
          component: 'exotic'
25
        })
26
        .state('dark', {
27
          component: 'dark'
28
        })
29
        .state('elements', {
30
          component: 'elements'
31
        })
32
        .state('achievements', {
33
          component: 'achievements'
34
        })
35
        .state('dashboard', {
36
          component: 'dashboard'
37
        })
38
        .state('statistics', {
39
          component: 'statistics'
40
        })
41
        .state('options', {
42
          component: 'options'
43
        });
44
    }
45
  ]).run([
46
    '$state',
47
    function($state) {
48
      $state.go('generators');
49
    }
50
  ]);
51