catarse/catarse.js

View on GitHub
legacy/src/c/project-google-contact-import.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function oninit has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    oninit: function(vnode) {
        const clientId = document.getElementById('google_oauth_client'),
            modalToggle = h.toggleProp(false, true),
            feedPageUrl = 'https://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=1000',
            dataEmails = prop([]),
Severity: Major
Found in legacy/src/c/project-google-contact-import.js - About 2 hrs to fix

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

                fetch = (token, pageUrl) => {
                    if (!modalToggle()) {
                        modalToggle.toggle();
                        loadingContacts(true);
                        m.redraw();
    Severity: Minor
    Found in legacy/src/c/project-google-contact-import.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status