settings/js/users/groups.js
File groups.js
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Copyright (c) 2014, Raghu Nayyar <beingminimal@gmail.com>
* Copyright (c) 2014, Arthur Schiwon <blizzz@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
Function update
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function () {
if (GroupList.updating) {
return;
}
GroupList.updating = true;
Function sortGroups
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sortGroups: function () {
var lis = this.$userGroupList.find('.isgroup').get();
lis.sort(function (a, b) {
// "Everyone" always at the top
Avoid too many return
statements within this function. Open
Open
return UserList.alphanum(
$(a).find('a span').text(),
$(b).find('a span').text()
);
Avoid too many return
statements within this function. Open
Open
return 1;
Avoid too many return
statements within this function. Open
Open
return -1;