Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6379e82

Browse files
authored
Add CI hook to check code formatting usingcargo fmt --check (fspoettel#18)
1 parentb8b688f commit6379e82

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ jobs:
2828
# - uses: actions/checkout@v2
2929
# - name: cargo clippy
3030
# run: cargo clippy -- -D warnings
31+
# uncoment to enable format checking
32+
# fmt:
33+
# runs-on: ubuntu-latest
34+
# name: Format
35+
# steps:
36+
# - uses: actions/checkout@v3
37+
# - name: cargo fmt
38+
# run: cargo fmt --check

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ cargo clippy
148148

149149
Once installed, you can use the[download command](#download-input-for-a-day).
150150

151+
###Check code formatting in CI
152+
153+
Uncomment the`format` job in the`ci.yml` workflow to enable fmt checks in CI.
154+
151155
###Enable clippy lints in CI
152156

153157
Uncomment the`clippy` job in the`ci.yml` workflow to enable clippy checks in CI.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp