4minitz/4minitz

View on GitHub
imports/server/exportimport/expImpUsers.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function preImportCheck has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static preImportCheck (db, msID) {
        return new Promise((resolve, reject) => {
            const mapFile = msID + ExpImpUsers.MAPNAME_POSTFIX;
            let usrMap = undefined;
            try {
Severity: Major
Found in imports/server/exportimport/expImpUsers.js - About 2 hrs to fix

    Function doImport has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        static doImport (db, msID, usrMap) {
            return new Promise((resolve, reject) => {
                const usrFile = msID + ExpImpUsers.FILENAME_POSTFIX;
                let allUsersDoc = undefined;
                try {
    Severity: Minor
    Found in imports/server/exportimport/expImpUsers.js - About 1 hr to fix

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

          static doExport (db, msID, userIDsFlat) {
              return new Promise((resolve, reject) => {
                  userIDsFlat = Object.keys(userIDsFlat);
                  let userIDsOuputMap = {};
      
      
      Severity: Minor
      Found in imports/server/exportimport/expImpUsers.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status