GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( da5f76...59bb8c )
by Keith
76:35
created

demo/v2/js/controller/41list-and-view-master-data.js   A

Complexity

Total Complexity 10
Complexity/F 1.11

Size

Lines of Code 53
Function Count 9

Duplication

Duplicated Lines 53
Ratio 100 %

Importance

Changes 0
Metric Value
eloc 28
dl 53
loc 53
rs 10
c 0
b 0
f 0
wmc 10
mnd 1
bc 1
fnc 9
bpm 0.1111
cpm 1.1111
noi 6

1 Function

Rating   Name   Duplication   Size   Complexity  
A 41list-and-view-master-data.js ➔ Initialize 7 7 2

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1 View Code Duplication
"use strict";
2
app.controller('viewDepartmentController', ['$scope', function ($scope, $rootScope) {
3
	$scope.deptDataList = [];
4
	function Initialize(){
5
		var entryForm = {};
6
		var entryForm2 = {};
7
8
		$scope.entryForm = entryForm;
9
		$scope.entryForm2 = entryForm;
10
	}
11
	Initialize();
12
13
	$scope.EventListener = function(scope, iElement, iAttrs, controller){
14
		console.log("<"+iElement[0].tagName+">" +" Directive overried EventListener()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
15
16
		//http://api.jquery.com/Types/#Event
17
		//The standard events in the Document Object Model are:
18
		// blur, focus, load, resize, scroll, unload, beforeunload,
19
		// click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave,
20
		// change, select, submit, keydown, keypress, and keyup.
21
		iElement.ready(function() {
22
23
		})
24
	}
25
26
	$scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){
27
		console.log("<"+iElement[0].tagName+">" +" Directive overried SetDefaultValue()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
28
29
//		controller.ngModel.gender = "M";
30
	}
31
32
	$scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){
33
		console.log("<"+iElement[0].tagName+">" +" Directive overried StatusChange()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
34
35
		if(fieldName == "departmentCode")
36
			newObj.DepartmentCode = newObj.DepartmentCode.toUpperCase(); 
37
	}
38
39
	$scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){
40
		console.log("<"+iElement[0].tagName+">" +" Directive overried ValidateBuffer()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
41
		return true;
42
	}
43
44
	$scope.CustomPointedToRecord = function(pRecord, rowScope, scope, iElement, controller){
45
		console.log("<"+iElement[0].tagName+">" +" Directive overried CustomPointedToRecord()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
46
		$scope.entryForm = pRecord;
47
	}
48
49
	$scope.CustomSelectedToRecord = function(sRecord, rowScope, scope, iElement, controller){
50
		console.log("<"+iElement[0].tagName+">" +" Directive overried CustomPointedToRecord()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
51
		$scope.entryForm2 = sRecord;
52
	}
53
}]);