Skip to content

fix(lint): mark truncated parse fallbacks#2306

Open
fengjikui wants to merge 1 commit into
rtk-ai:developfrom
fengjikui:fix/lint-fallback-truncation-markers
Open

fix(lint): mark truncated parse fallbacks#2306
fengjikui wants to merge 1 commit into
rtk-ai:developfrom
fengjikui:fix/lint-fallback-truncation-markers

Conversation

@fengjikui
Copy link
Copy Markdown

Summary

Follow-up to #2204 for the lint fallback paths that still used silent character truncation when structured output parsing failed.

  • use the existing passthrough truncation marker for Ruff JSON parse failures
  • use the existing passthrough truncation marker for golangci-lint JSON parse failures
  • add regression tests so long malformed JSON output visibly reports [RTK:PASSTHROUGH] Output truncated

This does not overlap with #2205, which focuses on git log output.

Validation

  • cargo fmt --check
  • cargo test cmds::python::ruff_cmd::tests
  • cargo test cmds::go::golangci_cmd::tests
  • cargo clippy --all-targets -- -D warnings
  • cargo test

AI assistance

I used Codex to help prepare this patch, reviewed the diff, and ran the validation commands above locally.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 7, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants