meteor/meteor

View on GitHub
packages/dynamic-import/cache.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function checkMany has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.checkMany = function (versions) {
  var ids = Object.keys(versions);
  var sourcesById = Object.create(null);

  // Initialize sourcesById with null values to indicate all sources are
Severity: Minor
Found in packages/dynamic-import/cache.js - About 1 hr to fix

    Function flushSetMany has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function flushSetMany() {
      if (checkCount > 0) {
        // If checkMany is currently underway, postpone the flush until later,
        // since updating the cache is less important than reading from it.
        return flushSetMany.timer = setTimeout(flushSetMany, 100);
    Severity: Minor
    Found in packages/dynamic-import/cache.js - About 1 hr to fix

      Avoid too many return statements within this function.
      Open

        if (typeof msIndexedDB !== "undefined") return msIndexedDB;
      Severity: Major
      Found in packages/dynamic-import/cache.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status