rosa-abf/rosa-build

View on GitHub
app/assets/javascripts/extra/highlight.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function highlightShow has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

function highlightShow(id) {
$('td.code span.highlight-line').removeClass('highlight-line');
var from = to = id.substring(4);
if (/[0-9]+\-lc-[0-9]+$/.test(from)) {
var index = to.indexOf('-');
Severity: Minor
Found in app/assets/javascripts/extra/highlight.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status