linagora/openpaas-esn

View on GitHub
modules/linagora.esn.contact/backend/lib/autoconf/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function exports has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = dependencies => {
  const client = require('../client')(dependencies),
        token = dependencies('auth').token;

  return {
Severity: Minor
Found in modules/linagora.esn.contact/backend/lib/autoconf/index.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

            if (res && res.body && res.body._embedded && res.body._embedded['dav:addressbook']) {
              addressbooks = _.map(res.body._embedded['dav:addressbook'], book => {
                const uri = book._links.self.href.replace('.json', ''); // No JSON for *DAV URI
    
                return {
    Severity: Major
    Found in modules/linagora.esn.contact/backend/lib/autoconf/index.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status