chore(tooling): adoptar rustfmt con gate de CI de formato (baseline no fmt-clean)
Maintainer thường phản hồi trong vòng 1 ngày
@SrStamm đang làm issue này rồi.
Từ ngày 25/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Pre-flight checks
- I searched existing issues and found no duplicate.
- I understand that this proposal requires product review before implementation.
Problem to solve
El repo no tiene una política de formato Rust verificada:
- No existe
rustfmt.tomlen ninguna parte del repo. - Ningún workflow de CI corre
cargo fmt --check(revisados los 9 de.github/workflows/). - El baseline no está fmt-clean:
cargo fmt --checkfalla hoy (p. ej.src-tauri/src/wm_compat.rsysrc-tauri/src/cli_process.rstienen líneas largas sin formato).
Consecuencia observada en la práctica (PR #183, ciclo de revisión de #181): un cargo fmt -- <archivos> durante el trabajo generó ruido de formato en 29 archivos que no se tocaban (~3.700 líneas), que hubo que descartar para no inflar el diff de un PR de bugfix. Cada contribuidor decide su estilo y cualquier PR que mezcle cambios funcionales con formateo mata la revisión del diff.
Proposed solution
Tres pasos, en este orden:
- Decidir configuración (opcional): si se quiere algo distinto del default de rustfmt (p. ej.
max_widthmás generoso; varios tests actuales se escribieron con líneas >100 columnas y rustfmt los parte), definirlo enrustfmt.tomlantes de formatear. - Un commit de formateo único y aislado:
chore(style): cargo fmtsolo formato, sin mezclar con nada funcional, revisado y aterrizado solo. Así ese diff grande se lee una vez y no vuelve a aparecer. - Gate de CI:
cargo fmt --checkcomo paso enci.yml/linux-pr-ci.yml(coste en segundos) para que el formato sea requisito de PR y no decisión de cada contribuidor.
Coordinación: aterrizar después del merge de #183 (PR en vuelo) para no rebasear sobre un reformateo masivo.
Affected area
CI or automation
Scope and non-goals
Incluye: formateo de los targets Rust (src-tauri), posible rustfmt.toml, gate cargo fmt --check en CI.
No incluye: cambios de comportamiento o refactors (el formateo es solo formato), política de warnings de clippy ni otros linters, formateo del frontend (prettier/eslint, si aplica, sería propuesta aparte), ni cambios al flujo de #183/#181.
Alternatives considered
- No hacer nada / discreción por contribuidor: lleva a estilos mezclados y PRs ruidosos (observado en la práctica).
- Formatear solo archivos tocados por PR: como el baseline no está fmt-clean, sigue generando ruido en el diff.
- Gate de CI sin el commit de formateo: el check fallaría de inmediato en el baseline; no es viable sin el paso 2.
- Ngôn ngữ chính
- TypeScript
- Star
- 10
- Fork
- 2
- Merge trung bình
- 4 giờ 44 phút
- Pull request đã merge (30 ngày)
- 100
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của egdev6/quorb
-
feat: versión de Quorb para iOSĐang mởtype:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 3/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
egdev6/quorb#188 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Proveedor OpenCode Go: cuotas de 5 h, semanal y mensualCó thể đã có người làm @SrStamm đã nhận hôm nay. Đang mởstatus:approved
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
egdev6/quorb#187 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
b310-digital/teammapper#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OneNote: import empty sectionsĐang mởonenote
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
obsidianmd/obsidian-importer#689 ·
-
In a half-screen window, the title bar cuts the workspace and version names until they can't be readĐang mởbug launch local use macOS Windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Integration]: eRPCĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ava-labs/builders-hub#4826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
记忆分析的默认模型显示与实际使用不一致Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày