Skip to content

feat: add Flutter and Dart command filters with compact output#2457

Open
thomasdhulst wants to merge 1 commit into
rtk-ai:developfrom
thomasdhulst:feat/add-dart-flutter
Open

feat: add Flutter and Dart command filters with compact output#2457
thomasdhulst wants to merge 1 commit into
rtk-ai:developfrom
thomasdhulst:feat/add-dart-flutter

Conversation

@thomasdhulst

Copy link
Copy Markdown
  • Introduced flutter_cmd.rs for handling Flutter commands: analyze, pub get, and test.
  • Added dart/mod.rs for Dart command filtering.
  • Implemented output filtering for Flutter analyze, pub get, and test commands.
  • Created new fixtures for testing Flutter command outputs.
  • Updated command routing in main.rs to include Flutter and Dart commands.
  • Enhanced TOML filter to recognize Flutter and Dart commands.
  • Added classification rules for Flutter and Dart commands in the registry.
  • Implemented tests to ensure proper functionality of new command filters.

Summary

Adds first-class RTK support for Flutter and Dart commands, focused on shrinking noisy CLI output for flutter analyze, flutter pub get, flutter test, and dart analyze. It introduces new command routing, output filters, updated discovery rules, and fixtures/tests that validate grouped diagnostics, trimmed package-install logs, and compact test failure summaries.

Test plan

Verified with the Rust test suite and formatting/lint checks where applicable, then manually exercised the new rtk flutter and rtk dart paths to inspect the rewritten CLI output. I also checked the sample Flutter fixtures to confirm the filters keep failures, summarize diagnostics by file, and remove the noisy pass-through logs.

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

- Introduced `flutter_cmd.rs` for handling Flutter commands: analyze, pub get, and test.
- Added `dart/mod.rs` for Dart command filtering.
- Implemented output filtering for Flutter analyze, pub get, and test commands.
- Created new fixtures for testing Flutter command outputs.
- Updated command routing in `main.rs` to include Flutter and Dart commands.
- Enhanced TOML filter to recognize Flutter and Dart commands.
- Added classification rules for Flutter and Dart commands in the registry.
- Implemented tests to ensure proper functionality of new command filters.
@CLAassistant

CLAassistant commented Jun 15, 2026

Copy link
Copy Markdown

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