ultimate-comparisons/ultimate-comparison-BASE

View on GitHub
lib/gulp/model/criteria/criteria.js

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

    if ((isNullOrUndefined(type) && id === "id") ||
      (!isNullOrUndefined(type) &&
        String(type).toUpperCase() === "NAME-URL" ||
        String(type).toUpperCase() === "NAME_URL" ||
        String(type).toUpperCase() === "URL")
Severity: Major
Found in lib/gulp/model/criteria/criteria.js - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status