app/public/scripts/AppViewModel.js
Function AppViewModel
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var AppViewModel = function() {
var self = this;
var isLoadingInitially = true;
Function updateCurrentBuildsWithChanges
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.updateCurrentBuildsWithChanges = function (changes) {
if (anyBuildMatchesToNotifcationFilter(changes.removed) ||
anyBuildMatchesToNotifcationFilter(changes.added) ||
anyBuildMatchesToNotifcationFilter(changes.updated)) {
self.setHasUnreadBuilds(true);