cksource/mgit2

View on GitHub
lib/utils/gitstatusparser.js

Summary

Maintainability
A
1 hr
Test Coverage

Function gitStatusParser has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function gitStatusParser( branchStatus, currentTag ) {
    const responseAsArray = branchStatus.split( '\n' );
    const branchData = responseAsArray.shift();

    const branch = branchData.split( '...' )[ 0 ].match( /## (.*)$/ )[ 1 ];
Severity: Minor
Found in lib/utils/gitstatusparser.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status