Skip to content

Commit

Permalink
Enabled more Clippy linting for VS Code tasks and CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cry-inc committed Sep 21, 2024
1 parent 3b24e0e commit 27b3ce8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Execute Tests
run: cargo test --release --all
- name: Run Clippy
run: cargo clippy --release --all -- -D warnings
run: cargo clippy --release --all --all-targets --all-features --locked -- -D warnings
- name: Check Formatting
run: cargo fmt --all -- --check
- name: Check Docs
Expand Down
5 changes: 4 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"command": "cargo",
"args": [
"clippy",
"--all"
"--all",
"--locked",
"--all-targets",
"--all-features"
],
"problemMatcher": [
"$rustc"
Expand Down
4 changes: 4 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Allow some things in tests
allow-unwrap-in-tests = true
allow-panic-in-tests = true
allow-expect-in-tests = true

0 comments on commit 27b3ce8

Please sign in to comment.