NatLibFi/record-loader-logger-loglevel

View on GitHub
lib/logger/loglevel.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function factory has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function factory(Object, loglevel, messageBufferPlugin, messagePrefixPlugin, stdStreamsPlugin, loggerFactory) {

  'use strict';
  
  return function(parameters)
Severity: Major
Found in lib/logger/loglevel.js - About 3 hrs to fix

    Function create has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function create(name)
        {
    
          var auto_flush, level,
          obj = loggerFactory(),
    Severity: Major
    Found in lib/logger/loglevel.js - About 2 hrs to fix

      Function factory has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function factory(Object, loglevel, messageBufferPlugin, messagePrefixPlugin, stdStreamsPlugin, loggerFactory) {
      Severity: Minor
      Found in lib/logger/loglevel.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status