server/service/AuditServiceCreator.js
Function createShipper
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createShipper() {
switch (shipEngine) {
case 'file':
const FILENAME = nconf.get('AUDIT_FILENAME') || "audit.log"
const MAXSIZE = nconf.get('AUDIT_MAX_SIZE') || 10 ** 7 // 10 MB default max size