koreezgames/phaser3-ninepatch-plugin

View on GitHub
static/scripts/cache-polyfill.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function addAll has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Cache.prototype.addAll = function addAll(requests) {
    var cache = this;

    // Since DOMExceptions are not constructable:
    function NetworkError(message) {
Severity: Minor
Found in static/scripts/cache-polyfill.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

      if (
        nativeAddAll && (!userAgent ||
          (agent === 'Firefox' && version >= 46) ||
          (agent === 'Chrome'  && version >= 50)
        )
    Severity: Major
    Found in static/scripts/cache-polyfill.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status