Showing 726 of 2,177 total issues
Function createContactSyncJob
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createContactSyncJob() {
var job = function(callback) {
q.all([getAllUsers(), getAllImporterTypes()])
.then(function(data) {
var users = data[0];
Function _createInterface
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createInterface(topic) {
return {
subscribe: handler => {
this._addCache(topic, ACTION_SUBSCRIBE, handler);
Function link
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, elem) {
$scope.fillPosition = function() {
$scope.position.load = true;
$scope.position.show = true;
Function link
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs) {
var position = 0,
toggled = false;
var scrollHandler = function(event) {
Function share
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.share = function() {
if (!$scope.activitystream) {
$log.debug('activitystream is required');
Function on
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function(event, callback) {
if (!room) {
client.on(event, callback);
$log.debug(namespace + ' : subscribed');
return this;
Function controller
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function controller($scope) {
var userResolver = objectTypeResolver.resolve($scope.notification.subject.objectType, $scope.notification.subject.id);
var collaborationResolver = objectTypeResolver.resolve($scope.notification.complement.objectType, $scope.notification.complement.id);
this.actionDone = function(action) {
Function synchronize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function synchronize(domainId) {
const syncTime = Date.now();
return Promise.all([
_getTechnicalUserAndToken(domainId),
Function exports
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(dependencies, lib) {
function getUser(req, res) {
if (!req.user) {
return res.status(404).json({error: {code: 404, message: 'Not found', details: 'User not found'}});
Function sendMessageAsEmails
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sendMessageAsEmails(message, recipients, callback) {
if (!message) {
return callback(new Error('Message is required'));
}
Function exports
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = dependencies => {
const esnConfig = dependencies('esn-config'),
autoconf = require('../../lib/autoconf')(dependencies);
return {
Function hasContactInformationMatchQuery
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.hasContactInformationMatchQuery = function() {
if ($scope.keySearch === null || angular.isUndefined($scope.keySearch)) {
return false;
}
Function contactListItems
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function contactListItems(
$timeout,
ContactListScrollingService,
contactService,
sharedContactDataService,
Function askUserForCancel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function askUserForCancel(text, linkText, delay) {
var deferred = $q.defer();
var notification = notifyService({
message: text
Function exports
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(dependencies) {
const logger = dependencies('logger');
const esnConfig = dependencies('esn-config');
const strategies = require('./strategies')(dependencies);
Function load
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load(req, res, next) {
if (!dbHelper.isValidObjectId(req.params.technicalUserId)) {
return res.status(400).json({
error: {
code: 400,
Function emailExists
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function emailExists(email, ldapConfig, callback) {
if (!email || !ldapConfig) {
return callback(new Error('Missing parameters'));
}
Function _getElasticsearchMustNotQuery
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getElasticsearchMustNotQuery(options) {
const result = {
bool: {
should: [{
terms: {
Function fileWatcherInstance
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function fileWatcherInstance() {
if (watchingConfig) {
return false;
}
Function updateShareTargets
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateShareTargets(target) {
if (!target) {
return;
}