Format the code with rustfmt and check formatting and lints in CI

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

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

評価

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

調査の方向性

まず cargo fmt --all を実行し、その変更だけを単独でコミットしてください。次に cargo fmt --all --check が何も報告しないことを確認します。続いて .github/workflows/ci.yml を編集し、Test の前に fmt と clippy のステップを追加します。その際、dtolnay/rust-toolchain@stable のステップに components: rustfmt, clippy を追加してください。最後に CONTRIBUTING.md に1行追加します。両方の cargo コマンドがローカルと CI の両方で、動作の変更なしに成功すれば完了です。

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

説明

enhancement good first issue

The Rust code isn't run through rustfmt yet, so contributors who format their changes get unrelated diffs in other files. cargo fmt --all --check currently reports differences in 14 files. cargo clippy --workspace --all-targets is already clean, but nothing keeps it that way.

This is a good first contribution: no Windows API knowledge needed.

What to do

  1. Run cargo fmt --all and commit the result on its own, with no other changes, so it is easy to review.

  2. In .github/workflows/ci.yml, add two steps before Test:

    • cargo fmt --all --check
    • cargo clippy --workspace --all-targets -- -D warnings

    dtolnay/rust-toolchain@stable needs components: rustfmt, clippy for these to work.

  3. Mention in CONTRIBUTING.md that contributors should run cargo fmt --all before opening a pull request.

Done when

  • cargo fmt --all --check and cargo clippy --workspace --all-targets -- -D warnings both pass locally and in CI.
  • No code behaviour changes.
主要言語
Rust
スター
7
フォーク
1
平均マージ
6時間 34分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

CodingRule/Hidely のほかの issue

CodingRule/Hidely の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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