Skip to content

cli/cli: clippy pedantic assert_is_empty, format_push_string, wildcard_imports (part of #12395) - #12798

Merged
TrapsterDK merged 1 commit into
mainfrom
pedantic-cli-cli-2
Nov 15, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
pedantic-cli-cli-2

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #12395.

Cleared in //cli/cli: assert_is_empty (88), format_push_string (45), wildcard_imports (36), plus a few machine-applicable fixes.

Tests: //cli/cli:dx_cli_test, dx_man_test, agents, dev_launcher, startup_consistency, uv_sets pass. //cli/cli/tests/adopt:adopt_test has 2 failures from a line_ending: lf golden mismatch in the local environment, in logic this PR does not change. Nested-Bazel and consumer tests not run.

Remaining in cli/cli: too_many_lines 43, similar_names 18, casts ~28, needless_pass_by_value 9, unnecessary_debug_formatting 8, elided_lifetimes_in_paths 7, unused_self 4, default_trait_access 4, format_collect 4, plus single-digit others.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvuiHK9vSNJZWiqKfX

…d_imports (part of #12395)

Replace assert!(x.is_empty()) with messaged asserts, push_str(&format!) with
write!, and glob imports with explicit lists in //cli/cli.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvuiHK9vSNJZWiqKfX
@TrapsterDK
TrapsterDK merged commit 306c43a into main Nov 15, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the pedantic-cli-cli-2 branch November 15, 2026 01:45
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