From 38c89314d2bf3a33f781999e62ecbfb732760758 Mon Sep 17 00:00:00 2001 From: John Cairns Date: Wed, 8 Nov 2023 14:03:18 -0600 Subject: [PATCH] 321: clean up +nightly in one more spot --- .vscode/tasks.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 126d40da2..9897a7929 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,7 @@ { "label": "fmt", "type": "shell", - "command": "cargo +nightly fmt --check", + "command": "cargo fmt --check", "options": { "cwd": "${workspaceFolder}" }, @@ -15,6 +15,19 @@ "isDefault": "false" } }, + { + "label": "lint", + "type": "shell", + "command": "cargo clippy --all-features --no-deps", + "options": { + "cwd": "${workspaceFolder}" + }, + "dependsOn": "fmt", + "group": { + "kind": "build", + "isDefault": "false" + } + }, { "label": "build", "type": "shell", @@ -22,6 +35,7 @@ "options": { "cwd": "${workspaceFolder}" }, + "dependsOn": "lint", "group": { "kind": "build", "isDefault": "false" @@ -34,6 +48,7 @@ "options": { "cwd": "${workspaceFolder}" }, + "dependsOn": "lint", "group": { "kind": "build", "isDefault": "true" @@ -46,10 +61,11 @@ "options": { "cwd": "${workspaceFolder}" }, + "dependsOn": "lint", "group": { "kind": "test", "isDefault": "true" } } ] -} \ No newline at end of file +}