SimpliField/sf-filecache

View on GitHub

Showing 5 of 19 total issues

File index.mocha.js has 496 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint max-nested-callbacks:[1,6], func-names:[0] */

'use strict';

const assert = require('assert');
Severity: Minor
Found in src/index.mocha.js - About 7 hrs to fix

    Function fileCacheSetEOL has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    FileCache.prototype.setEOL = function fileCacheSetEOL(key, eol, cb) {
      const _this = this;
    
      eol = eol || 0;
      cb = cb || (() => {});
    Severity: Minor
    Found in src/index.js - About 1 hr to fix

      Function fileCacheGetStream has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      FileCache.prototype.getStream = function fileCacheGetStream(key, cb) {
        const _this = this;
        let stream = null;
        let bucketHeader = null;
      
      
      Severity: Minor
      Found in src/index.js - About 1 hr to fix

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

        FileCache.prototype.set = function fileCacheSet(key, data, eol, cb) {
          const header = this._createHeader({
            eol: eol,
          });
          const dest = this._keyToPath(key);
        Severity: Minor
        Found in src/index.js - About 1 hr to fix

          Function fileCacheSetStream has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          FileCache.prototype.setStream = function fileCacheSetStream(
            key,
            stream,
            eol,
            cb
          Severity: Minor
          Found in src/index.js - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language