Split out from the #404 re-review (see docs/BUG_AUDIT.md → 'Deferred' + Low tier CBA-11).
- CBA-08 (
code_analyzer.py:1410): the top-level vs nested Kotlin function check counts raw {/} in the prefix; an unbalanced brace inside a string literal (val s = "}") or comment corrupts the depth and can drop/misclassify a function.
- CBA-11 (
code_analyzer.py:581,588): comment extractors match // / /* */ inside string literals → phantom comments from URLs in strings.
Shared root cause: no string/comment-aware scanning. Fix together with a small tokenizer pass that strips string literals + comments before brace-counting / comment extraction.
Split out from the #404 re-review (see
docs/BUG_AUDIT.md→ 'Deferred' + Low tier CBA-11).code_analyzer.py:1410): the top-level vs nested Kotlin function check counts raw{/}in the prefix; an unbalanced brace inside a string literal (val s = "}") or comment corrupts the depth and can drop/misclassify a function.code_analyzer.py:581,588): comment extractors match////* */inside string literals → phantom comments from URLs in strings.Shared root cause: no string/comment-aware scanning. Fix together with a small tokenizer pass that strips string literals + comments before brace-counting / comment extraction.