app/scripts/controllers/pane-authors.js
Function confirmRemoveAuthor
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.confirmRemoveAuthor = function (author) {
var modal,
title,
text;
Function authorRoleChanged
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.authorRoleChanged = function (newRole, oldRole, author) {
author.updatingRole = true;
author.updateRole({
number: article.articleId,
Function addAuthorToArticle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addAuthorToArticle = function () {
// NOTE: An author can be added multiple times (with different
// roles), therefore we need multiple deep copies of the object to
// distinguish between them in $scope.authors ng-repeat.
var author = angular.copy($scope.newAuthor),