Showing 5 of 19 total issues
File index.mocha.js
has 496 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint max-nested-callbacks:[1,6], func-names:[0] */
'use strict';
const assert = require('assert');
Function fileCacheSetEOL
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileCache.prototype.setEOL = function fileCacheSetEOL(key, eol, cb) {
const _this = this;
eol = eol || 0;
cb = cb || (() => {});
Function fileCacheGetStream
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileCache.prototype.getStream = function fileCacheGetStream(key, cb) {
const _this = this;
let stream = null;
let bucketHeader = null;
Function fileCacheSet
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileCache.prototype.set = function fileCacheSet(key, data, eol, cb) {
const header = this._createHeader({
eol: eol,
});
const dest = this._keyToPath(key);
Function fileCacheSetStream
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileCache.prototype.setStream = function fileCacheSetStream(
key,
stream,
eol,
cb