resources/js/src/server/status/variables.ts
Function filterVariables
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function filterVariables () {
var usefulLinks = 0;
var section = text;
if (categoryFilter.length > 0) {
Consider simplifying this complex logical expression. Open
Open
if ((textFilter === null || textFilter.exec($(this).text())) &&
(! alertFilter || $(this).next().find('span.text-danger').length > 0) &&
(categoryFilter.length === 0 || $(this).parent().hasClass('s_' + categoryFilter))
) {
$(this).parent().css('display', '');