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 +}