Skip to content

fix: consistent error handling for impact_analysis + LOC off-by-one#11

Merged
bntvllnt merged 2 commits intomainfrom
fix/error-handling
Mar 11, 2026
Merged

fix: consistent error handling for impact_analysis + LOC off-by-one#11
bntvllnt merged 2 commits intomainfrom
fix/error-handling

Conversation

@bntvllnt
Copy link
Owner

Summary

Fixes #8

  • impact_analysis now returns isError: true for nonexistent symbols (matching symbol_context and file_context behavior)
  • Fixed LOC off-by-one: trailing newline no longer double-counted
  • Added empty file guard (0 LOC instead of crash)

Test plan

  • Regression tests for all 8 ACs
  • All existing tests pass
  • Quality gates: lint, typecheck, build, test

@bntvllnt bntvllnt self-assigned this Mar 11, 2026
@bntvllnt bntvllnt merged commit 364e649 into main Mar 11, 2026
1 check passed
@bntvllnt bntvllnt deleted the fix/error-handling branch March 11, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: inconsistent error handling across tools + LOC off-by-one

1 participant