makeomatic/ms-payments

View on GitHub
src/list-utils.js

Summary

Maintainability
A
1 hr
Test Coverage

Function cleanupCache has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function cleanupCache(_index) {
  const { redis, redisType, config } = this;
  const { keyPrefix } = config.redis.options;
  const keyPrefixLength = keyPrefix.length;
  const index = `${keyPrefix}${_index}`;
Severity: Minor
Found in src/list-utils.js - About 1 hr to fix

    Parsing error: The keyword 'const' is reserved
    Open

    const Promise = require('bluebird');
    Severity: Minor
    Found in src/list-utils.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status