Skip to content

Commit f565572

Browse files
committed
ci: rename lint workflow
1 parent 989548e commit f565572

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,31 @@ jobs:
2222
toolchain: nightly
2323
components: rustfmt
2424

25-
- run: cargo fmt --all -- --check
25+
- name: Check with rustfmt
26+
run: cargo fmt --all -- --check
2627

2728
clippy:
2829
permissions:
30+
contents: read
2931
checks: write # to add clippy checks to PR diffs
3032

3133
runs-on: ubuntu-latest
3234
steps:
3335
- uses: actions/checkout@v4
3436

35-
- uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
37+
- name: Install Rust
38+
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
3639
with:
3740
components: clippy
3841

39-
- uses: giraffate/clippy-action@v1.0.1
42+
- name: Check with Clippy
43+
uses: giraffate/clippy-action@v1.0.1
4044
with:
4145
reporter: github-pr-check
4246
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
clippy_flags: --workspace --all-features --tests --examples --bins -- -Dclippy::todo -Aunknown_lints
47+
clippy_flags: >-
48+
--workspace --all-features --tests --examples --bins --
49+
-A unknown_lints -D clippy::todo -D clippy::dbg_macro
4450
4551
lint-docs:
4652
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)