Asymmetrik/node-rest-starter

View on GitHub
src/app/core/user/user.model.ts

Summary

Maintainability
B
5 hrs
Test Coverage

File user.model.ts has 334 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import crypto, { BinaryLike } from 'crypto';

import _ from 'lodash';
import mongoose, {
    HydratedDocument,
Severity: Minor
Found in src/app/core/user/user.model.ts - About 4 hrs to fix

    Function auditCopy has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    UserSchema.methods.auditCopy = function (userIP?: string) {
        const toReturn: Record<string, unknown> = {};
    
        const asObject = this.toObject();
    
    
    Severity: Minor
    Found in src/app/core/user/user.model.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status