martinheidegger/block-cache

View on GitHub
Cache.js

Summary

Maintainability
A
1 hr
Test Coverage

Function constructor has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor (fs, cacheOpts) {
    if (!fs) throw err('ERR_INVALID_ARG_TYPE', 'fs option required, this package doesnt assume which fs you want to use, see: hyperdrive')

    cacheOpts = Object.assign({
      cacheSize: DEFAULT_CACHE_SIZE,
Severity: Minor
Found in Cache.js - About 1 hr to fix

    Function read has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Wontfix

      read (fp, buffer, position, size, start, cb) {
    Severity: Minor
    Found in Cache.js - About 45 mins to fix

      Function read has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Wontfix

          read (fp, prefix, start, end, cb) {
      Severity: Minor
      Found in Cache.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status