UnlyEd/next-right-now

View on GitHub
src/modules/core/airtable/consolidateSanitizedAirtableRecord.ts

Summary

Maintainability
A
0 mins
Test Coverage

Avoid deeply nested control flow statements.
Wontfix

            if (allowedRelationshipsDepthResolution > 0) {
              consolidatedRelationship = consolidateSanitizedAirtableRecord(airtableSchema, sanitizedDataset, relatedRecord, allowedRelationshipsDepthResolution - 1);
            } else {
              consolidatedRelationship = relatedRecord;
            }
Severity: Major
Found in src/modules/core/airtable/consolidateSanitizedAirtableRecord.ts - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Wontfix

                  if (allowedRelationshipsDepthResolution > 0) {
                    consolidatedRelationship.push(consolidateSanitizedAirtableRecord(airtableSchema, sanitizedDataset, relatedRecord, allowedRelationshipsDepthResolution - 1));
                  } else {
                    consolidatedRelationship.push(relatedRecord);
                  }
    Severity: Major
    Found in src/modules/core/airtable/consolidateSanitizedAirtableRecord.ts - About 45 mins to fix

      TODO found
      Wontfix

       * TODO This is not optimised. A better way of doing things would be to go through the whole dataset and create circular references by resolving each relationship.

      There are no issues that match your filters.

      Category
      Status