Skip to content

Fix gdradon source line mapping#422

Open
nkgotcode wants to merge 1 commit into
Scony:masterfrom
nkgotcode:fix/gdradon-line-mapping
Open

Fix gdradon source line mapping#422
nkgotcode wants to merge 1 commit into
Scony:masterfrom
nkgotcode:fix/gdradon-line-mapping

Conversation

@nkgotcode

@nkgotcode nkgotcode commented Jun 6, 2026

Copy link
Copy Markdown

Fixes #421

gdradon cc now reports cyclomatic-complexity positions using the original
GDScript source line/column instead of the generated Python line number.

Validation:

  • PATH="$PWD/.venv/bin:$PATH" .venv/bin/pytest tests/gdradon/test_executable.py -q
  • PATH="$PWD/.venv/bin:$PATH" .venv/bin/pytest tests/gd2py -q
  • PATH="$PWD/.venv/bin:$PATH" .venv/bin/gdradon cc "$tmp" with $tmp containing the issue gdradon cc reports incorrect line numbers #421 repro
  • PATH="$PWD/.venv/bin:$PATH" .venv/bin/python -m compileall -q gdtoolkit/gd2py gdtoolkit/gdradon tests/gdradon/test_executable.py

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.

gdradon cc reports incorrect line numbers

1 participant