Skip to content

fix(cargo): show clippy error details in compact output#677

Open
TechWizard9999 wants to merge 1 commit intortk-ai:developfrom
TechWizard9999:fix/cargo-clippy-show-error-details
Open

fix(cargo): show clippy error details in compact output#677
TechWizard9999 wants to merge 1 commit intortk-ai:developfrom
TechWizard9999:fix/cargo-clippy-show-error-details

Conversation

@TechWizard9999
Copy link

Description

rtk cargo clippy could collapse output to counts/rules while hiding actionable error text in some failure modes. This PR preserves concise output but always includes concrete error lines.

Related Issue

Closes #602

Changes Made

  • enhanced clippy filter to collect and show error detail lines in compact output
  • added an Error details section (up to 5 entries, with overflow summary)
  • added regression test to ensure error text is present when clippy reports an error
  • added changelog entry under Unreleased bug fixes

Files Changed

Testing

  • cargo fmt --all --check
  • rtk cargo clippy --all-targets (2 pre-existing warnings in untouched files)
  • rtk cargo test
  • rtk cargo test cargo_cmd::tests::test_filter_cargo_clippy_includes_error_details

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated
  • No breaking changes introduced

cc @pszymkowiak for review

@TechWizard9999 TechWizard9999 force-pushed the fix/cargo-clippy-show-error-details branch from 62eadfd to 43ea1f5 Compare March 19, 2026 04:22
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.

1 participant