CI: rustfmt and clippy gates with a tab-indented rustfmt.toml

オープン 初心者向け
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, rust
領域
ci-cd, tooling

調査の方向性

まずリポジトリのルートに rustfmt.toml を追加し、hard_tabs = true を設定します。次に cargo fmt を一度実行し、フォーマット変更のみをコミットします。cargo clippy --all-targets -- -D warnings を実行し、報告された各 lint を修正するか、その理由を説明してください。cargo fmt --check と clippy の両方がローカルで成功し、いずれかが違反を報告した場合に CI が失敗すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The code is tab-indented but there is no rustfmt config, so cargo fmt would rewrite every file.

Acceptance criteria

  • rustfmt.toml with hard_tabs = true, one formatting-only commit applying it
  • cargo clippy --all-targets -- -D warnings is clean (fix or justify each lint)
  • Both run in CI and fail the build on violations

Estimate: 3 h

主要言語
Rust
スター
0
フォーク
0
平均マージ
3分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mrgnw/spatial-maker のほかの issue

mrgnw/spatial-maker の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。