jelhan/croodle

View on GitHub
app/models/poll.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function load has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static async load(id: string, passphrase: string) {
    const url = apiUrl(`polls/${id}`);

    // TODO: Handle network connectivity error
    const response = await fetch(url);
Severity: Major
Found in app/models/poll.ts - About 2 hrs to fix

    Function create has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      static async create(
        {
          anonymousUser,
          answerType,
          description,
    Severity: Major
    Found in app/models/poll.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status