From f39eb53dc1ea616e453302e7e8e2bd76d2f1b9dd Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sat, 11 Jul 2026 07:21:02 -0700 Subject: [PATCH] lint: rename to EditorConfig + process-type VS Code Lint tasks Apply the fleet conventions (ProjectTemplate #280): rename the Check line endings step / Lint: Line Endings task to EditorConfig, and switch the VS Code Lint tasks to type: process with an args array. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/validate-task.yml | 2 +- .vscode/tasks.json | 24 ++++++++++++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/validate-task.yml b/.github/workflows/validate-task.yml index 21e6fb4..34bc502 100644 --- a/.github/workflows/validate-task.yml +++ b/.github/workflows/validate-task.yml @@ -81,5 +81,5 @@ jobs: - name: Lint workflows step uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 # v2.2.0 - - name: Check line endings step + - name: Check EditorConfig step run: docker run --rm -v "$PWD":/check --workdir /check mstruebing/editorconfig-checker:latest diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d3ec0b3..3b233ea 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -136,9 +136,10 @@ // Lint group - the local full doc-lint surface (Docker at :latest), matching the CI lint set. // Run on demand. The pre-commit hook does language formatting only. Every repo carries these. { - "label": "Lint: Line Endings", - "type": "shell", - "command": "docker run --rm -v \"${workspaceFolder}:/check\" -w /check mstruebing/editorconfig-checker:latest", + "label": "Lint: EditorConfig", + "type": "process", + "command": "docker", + "args": [ "run", "--rm", "-v", "${workspaceFolder}:/check", "-w", "/check", "mstruebing/editorconfig-checker:latest" ], "problemMatcher": [], "presentation": { "showReuseMessage": false, @@ -147,8 +148,9 @@ }, { "label": "Lint: Workflows", - "type": "shell", - "command": "docker run --rm -v \"${workspaceFolder}:/repo\" -w /repo rhysd/actionlint:latest -color", + "type": "process", + "command": "docker", + "args": [ "run", "--rm", "-v", "${workspaceFolder}:/repo", "-w", "/repo", "rhysd/actionlint:latest", "-color" ], "problemMatcher": [], "presentation": { "showReuseMessage": false, @@ -157,8 +159,9 @@ }, { "label": "Lint: Markdown", - "type": "shell", - "command": "docker run --rm -v \"${workspaceFolder}:/workdir\" -w /workdir davidanson/markdownlint-cli2:latest \"**/*.md\"", + "type": "process", + "command": "docker", + "args": [ "run", "--rm", "-v", "${workspaceFolder}:/workdir", "-w", "/workdir", "davidanson/markdownlint-cli2:latest", "**/*.md" ], "problemMatcher": [], "presentation": { "showReuseMessage": false, @@ -167,8 +170,9 @@ }, { "label": "Lint: Spelling", - "type": "shell", - "command": "docker run --rm -v \"${workspaceFolder}:/workdir\" -w /workdir ghcr.io/streetsidesoftware/cspell:latest --no-progress README.md HISTORY.md", + "type": "process", + "command": "docker", + "args": [ "run", "--rm", "-v", "${workspaceFolder}:/workdir", "-w", "/workdir", "ghcr.io/streetsidesoftware/cspell:latest", "--no-progress", "README.md", "HISTORY.md" ], "problemMatcher": [], "presentation": { "showReuseMessage": false, @@ -179,7 +183,7 @@ "label": "Lint: All", "dependsOrder": "sequence", "dependsOn": [ - "Lint: Line Endings", + "Lint: EditorConfig", "Lint: Workflows", "Lint: Markdown", "Lint: Spelling"