Repository navigation
Weave v1.19.1
Fixed
- Bash CC parser: structural brace matching — counted braces inside strings (
"${var}"), parameter expansions (${#arr[@]}), and jq expressions as structural. Fixed by only counting{on function-definition lines and}on standalone lines. - Bash CC parser: one-liner functions —
func() { ...; }definitions caused ranges to extend to EOF. Fixed by detecting}at end of definition line. - Bash CC parser: heredoc content —
}inside heredocs was counted as structural. Fixed by tracking heredoc boundaries.
These fixes affect wv quality functions output for bash files. CC values for some functions were inflated by 10-40x.