johnjones4/InBrief

View on GitHub
src/lib/services/Email.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function fetchImap has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  fetchImap (mailbox) {
    const response = {
      'unread': 0,
      'flagged': 0
    }
Severity: Minor
Found in src/lib/services/Email.js - About 1 hr to fix

    Function p has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const p = new Promise((resolve, reject) => {
          imap.once('error', (err) => reject(err))
          imap.once('ready', () => {
            const execFlagSearch = () => {
              return openMailbox(mailbox.flagMailboxName)
    Severity: Minor
    Found in src/lib/services/Email.js - About 1 hr to fix

      Function fetchExchange has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        fetchExchange (mailbox) {
          const exch = new EWSFactory().initInstance(mailbox.credentials)
          const response = {
            'unread': 0,
            'flagged': 0
      Severity: Minor
      Found in src/lib/services/Email.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status