cksource/mgit2

View on GitHub
lib/utils/displaylog.js

Summary

Maintainability
A
1 hr
Test Coverage

Function displayLog has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function displayLog( packageName, logs, options ) {
    const infoLogs = logs.info.filter( l => l.length ).join( '\n' ).trim();
    const errorLogs = logs.error.filter( l => l.length ).join( '\n' ).trim();

    const progressPercentage = Math.round( ( options.current / options.all ) * 100 );
Severity: Minor
Found in lib/utils/displaylog.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status