logtown/logtown

View on GitHub
packages/logger/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

function sendMessage(id, level, fallbackToLog, ...rest) {
  const levelMethod = level.toLowerCase();
  const options = buildMessageOptions(id);
  const tagsToDisable = get(configRegistry, 'tags.disable', []);
  const namespaceTags = get(configRegistry, `namespaces.${id}.tags`, []);
Severity: Minor
Found in packages/logger/index.js - About 1 hr to fix

    Function applyPlugins has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function applyPlugins(plugins = [], id, level, stats, ...rest) {
    Severity: Minor
    Found in packages/logger/index.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status