Showing 726 of 2,177 total issues
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = dependencies => {
const importerRegistry = require('../registry')(dependencies);
const {
cleanOutdatedContacts,
getImporterOptions,
Function update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update(req, res) {
const domain = {
id: req.params.uuid,
company_name: req.body.company_name || req.domain.company_name,
hostnames: [...new Set(req.body.hostnames || req.domain.hostnames)]
Function create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create(fn, delay, context, onComplete, onCancel) {
logger.debug('Creating a task delayed by %s', delay);
delay = delay || DEFAULT_DELAY;
var options = context || {};
Function commentMessage
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function commentMessage(message, inReplyTo, req, res) {
var publishCommentActivity = function(parentMessage, childMessage) {
publishCommentActivityHelper(req.user, inReplyTo, parentMessage, childMessage);
};
Function getMailer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getMailer(user) {
const mailSenderPromise = getMailSender(user);
return {
send: send.bind(null, 'send'),
Function removeMembers
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function removeMembers(collaboration, members, callback) {
if (!collaboration || !Array.isArray(members)) {
return callback(new Error('Collaboration and members are required'));
}
Function buildWithEmailTemplates
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildWithEmailTemplates(message, template, locals = {}) {
const templatesDir = getTemplatesDir(template, options.defaultTemplatesDir);
const templateName = template.name || template;
const deferred = Q.defer();
Function _createInterface
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createInterface(topic) {
return {
subscribe: handler => {
if (!this.client) {
return this._addCache(topic, 'subscribe', handler);
Function esnAttachmentsSelectorController
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnAttachmentsSelectorController(esnAttachmentsSelectorService) {
var self = this;
if (self.attachmentHolder === undefined) {
self.attachmentHolder = esnAttachmentsSelectorService.newAttachmentServiceHolder({
Function esnMessageService
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnMessageService(esnMessageRegistry, esnMessageHelpers) {
return {
canRemove: canRemove,
canShare: canShare,
canUpdate: canUpdate
Function contactSearchProviders
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_,
$q,
Providers,
esnSearchProvider,
contactSearchResultsProviderSubmit,
Function runBlock
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ContactVirtualAddressBookRegistry,
ContactFollowingVirtualAddressBook,
DisplayShellProvider,
ContactUserDisplayShell,
ContactUserShellHelper,
Function infiniteList
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function infiniteList($interval, $q, MutationObserver, infiniteListService, INFINITE_LIST_EVENTS, INFINITE_LIST_IMMEDIATE_CHECK,
INFINITE_LIST_DISTANCE, INFINITE_LIST_DISABLED, INFINITE_LIST_POLLING_INTERVAL) {
Function esnTimelineEntriesController
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function esnTimelineEntriesController($scope, $log, _, esnTimelineEntriesHelper, infiniteScrollHelperBuilder, PageAggregatorService, TimelinePaginationProvider, session, TIMELINE_PAGE_SIZE) {
Function $get
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.$get = function($window, $rootScope, $timeout, $q, boxOverlayManager, BoxOverlayStateManager, deviceDetector, DEVICES, ESN_BOX_OVERLAY_EVENTS) {
Function esnCollaborationInviteUsers
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$q,
$rootScope,
notificationFactory,
session,
esnCollaborationService,
Function getReplyTo
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getReplyTo(to, user, callback) {
if (!to) {
return callback(new Error('target is required'));
}
Function getAddressbooks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAddressbooks(req, res) {
var options = {
ESNToken: req.token && req.token.token ? req.token.token : '',
davserver: req.davserver
};
Function controller
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function($scope, $location, invitationAPI, notificationFactory) {
$scope.settings = { firstname: '', lastname: '', email: '' };
$scope.signupButton = {
label: 'Sign up in OpenPaas',
notRunning: 'Sign up in OpenPaas',
Function contactCopyController
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function contactCopyController(
_,
asyncAction,
contactAddressbookDisplayService,
contactAddressbookService,