senecajs/seneca-cache

View on GitHub
lib/micro.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function Micro has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Micro(opts) {
  var self = {}

  self._expiry = opts.expiry
  self._que = []
Severity: Major
Found in lib/micro.js - About 2 hrs to fix

    Function submit has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      self.submit = function (action, callback) {
        var now = Date.now()
    
        // live result
        if (self._res && now - self._last < self._expiry) {
    Severity: Minor
    Found in lib/micro.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status