Completed
Push — master ( 4eae54...b72a16 )
by Andres
01:12
created

src/scripts/modules/module.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 11
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A angular.filter(ꞌkeylengthꞌ) 0 8 1
1
'use strict';
2
3
angular.module('game', ['ngAnimate', 'ui.router'])
4
.filter('keylength', function(){
5
  return function(input){
6
    if(!angular.isObject(input)){
7
      throw Error('Usage of non-objects with keylength filter!!');
8
    }
9
    return Object.keys(input).length;
10
  };
11
});
12