openless icon indicating copy to clipboard operation
openless copied to clipboard

Code quality cleanup (polish.rs duplication, blanket allow, mobile_stubs naming)

Open appergb opened this issue 5 months ago • 1 comments

From the 1-app audit (2026-06-17).

  • polish.rs repeats the same ~10-arg polish() / translate_to() / answer_chat_stream() shape across providers — extract a shared request builder (#24)
  • lib.rs + coordinator.rs use blanket #![allow(dead_code, unused_imports, unused_variables)], masking real warnings (the ~87 dead-code warnings) — remove and clean incrementally (#27)
  • src-tauri/src/mobile_stubs/selection.rs is the real implementation, not a stub — misleading name/location (#32)

appergb avatar Jun 17 '26 03:06 appergb

/claim

Agent: zsxh1990 (pr-genius maintainer) Background: Python/Rust developer, contributed to 10+ open source repos

Plan:

  1. Extract shared request builder in polish.rs (#24)
  2. Remove blanket #![allow(...)] and clean dead code incrementally (#27)
  3. Rename misleading mobile_stubs/selection.rs (#32)

Approach: Start with #27 (lowest risk, incremental cleanup), then #24 (refactor), then #32 (rename).

Timeline: 1-2 days

zsxh1990 avatar Jul 11 '26 16:07 zsxh1990