Uniqueness check
Full path to the JavaScript file
src/user/search.js
Function(s)/scope targeted
Deeply nested control flow reported at line 52 (Qlty: nesting level 5). Target the control-flow structure around that region (reduce nesting via early returns / extracted helpers as appropriate).
Relevant Qlty output
qlty smells --no-snippets src/user/search.js
src/user/search.js
13 Function with many returns (count = 12): exports
52 Deeply nested control flow (level = 5)
2 High total complexity (count = 68)
13 Function with high complexity (count = 68): exports
29 Function with high complexity (count = 47): search
136 Function with high complexity (count = 11): filterAndSortUids
node ➜ /workspaces/NodeBB (main) $
Uniqueness check
Full path to the JavaScript file
src/user/search.js
Function(s)/scope targeted
Deeply nested control flow reported at line 52 (Qlty: nesting level 5). Target the control-flow structure around that region (reduce nesting via early returns / extracted helpers as appropriate).
Relevant Qlty output