UnlyEd/next-right-now

View on GitHub
src/modules/core/data/record.ts

Summary

Maintainability
A
0 mins
Test Coverage
B
87%

Consider simplifying this complex logical expression.
Wontfix

  if ((value === NOT_FOUND || value === '' || value === '<p></p>' || value === '\n' || (typeof value === 'object' && isEmpty(value))) && value !== 0 && value !== false) {
    return false;
  } else {
    return !!value;
  }
Severity: Critical
Found in src/modules/core/data/record.ts - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Wontfix

              if (transform) {
                value = transform(get(record, key, defaultValue), {
                  fallbacks,
                  record,
                  key,
    Severity: Major
    Found in src/modules/core/data/record.ts - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status