ltgcgo/octavia

View on GitHub
src/disp/texted.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function arrowGen has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

let arrowGen = function (charArr, value, border, unit) {
let boundLow = border - (unit >> 1), boundHi = border + (unit >> 1);
if (value > border) {
for (let c = 0; value > border; c ++) {
charArr[c] = (value < boundHi) ? "=" : ">";
Severity: Minor
Found in src/disp/texted.js - About 1 hr to fix
Category
Status