chore(lint): clear clippy -D warnings across fj binary (FJ-13) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/clippy-clean-fj-13"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Clears all 108
clippy -D warningserrors thatjust check-clippyreported on thecrates/fjbinary under Rust 1.94, restoring the CI lint gate and the pre-commit hook. Resolves FJ-13.No runtime behavior or CLI surface change: every subcommand, flag, and
ValueEnumvalue (includingfj completion power-shell) is identical to before.What changed
Mechanical lints fixed at every flagged site, mostly via
cargo clippy --fix:needless_borrow,explicit_auto_deref,unnecessary_lazy_evaluations,wildcard_in_or_patterns,needless_borrows_for_generic_args,needless_question_mark,needless_return,println_empty_string,double_ended_iterator_last,option_as_ref_deref,extra_unused_lifetimes,cmp_owned,manual_repeat_n,from_over_into.if_same_then_elseatrepo.rs: the two arms both produced(remote_url, remote_repo_name), so they are merged into one||-combined condition. Behavior-preserving.8
too_many_argumentsfunctions refactored to <= 7 params via per-function argument structs (CreateIssueArgs,EditOrgLabelArgs,CreatePrArgs,CreateReleaseArgs,EditReleaseArgs,CreateRepoArgs,MigrateRepoArgs,EditRepoLabelArgs). Field names match the former parameter names; each single call site updated. No#[allow(clippy::too_many_arguments)]added.type_complexityonauth_servercleared with a namedAuthServertype alias. No#[allow].Documented
#[allow]only where a real fix is out of scope:clippy::enum_variant_nameson theShellenum (renamingPowerShellwould change the completion value and break the CLI), andclippy::crate_in_macro_defonftl_prompt!/ftl_prompt_bool!with aTODO(FJ-7)deferring the$crate::fix to the crate split. Thecrate::references are left untouched.Verification
cargo clippy --all-targets -- -D warnings,cargo fmt --check,cargo build --all-targets, andcargo testall pass.fj completion power-shellstill emits the PowerShell completion script unchanged.🤖 Generated with Claude Code