NatLibFi/record-loader-logger-loglevel

View on GitHub

Showing 4 of 4 total issues

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 exports has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(config) {
        config.set({
          singleRun: true,
          frameworks: ['mocha', 'requirejs'],
          browsers: ['PhantomJS'],
      Severity: Minor
      Found in karma.conf.js - About 1 hr 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
          Severity
          Category
          Status
          Source
          Language