Skip to content

Commit 1b03f9c

Browse files
committed
🐛 Update Rust Clippy action configuration for improved linting and remove unnecessary whitespace
1 parent 9ddb1d4 commit 1b03f9c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

rust/lint/action.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust Clippy
1+
name: Rust Clippy
22
description: Rust Linting using Clippy
33
author: 'Yezz123'
44
inputs:
@@ -13,7 +13,6 @@ inputs:
1313
runs:
1414
using: composite
1515
steps:
16-
1716
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f
1817
with:
1918
toolchain: stable
@@ -26,8 +25,6 @@ runs:
2625
manifest_dir: ${{ inputs.manifest_dir }}
2726
run: |
2827
chmod +x $GITHUB_ACTION_PATH/scripts/set-env.sh
29-
30-
# Set metadata for scan job
3128
$GITHUB_ACTION_PATH/scripts/set-env.sh
3229
3330
- uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
@@ -36,6 +33,10 @@ runs:
3633
continue-on-error: true
3734
with:
3835
token: ${{ inputs.token }}
39-
# Explicitly report all findings as warnings to not fail the reporiting status check
40-
args: --manifest-path ${{ steps.meta.outputs.manifest_path }} -- -W clippy::correctness -W clippy::cargo -W clippy::suspicious -W clippy::style
36+
args: >
37+
--manifest-path ${{ steps.meta.outputs.manifest_path }}
38+
-- -D warnings
39+
-W clippy::all
40+
-W clippy::pedantic
41+
-W clippy::nursery
4142
name: Rust Clippy Report

0 commit comments

Comments
 (0)