new-client/src/models/Message.ts

Summary

Maintainability
B
4 hrs
Test Coverage

MessageModel has 28 functions (exceeds 20 allowed). Consider refactoring.
Open

export default class MessageModel {
  public readonly gid: number;
  public body = '';
  public doc?: RemirrorJSON;
  private readonly category: MessageCategory;
Severity: Minor
Found in new-client/src/models/Message.ts - About 3 hrs to fix

    Function constructor has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      constructor({ gid, body, doc, category, timestamp, updatedTimestamp, user, window, status }: MessageModelProps) {
        this.gid = gid;
        this.body = body || '';
        this.doc = doc;
        this.category = category;
    Severity: Minor
    Found in new-client/src/models/Message.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status