diff --git a/.gitattributes b/.gitattributes index 699f1100e..99ca66dd6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,9 +1,6 @@ *.sh text eol=lf -DockerInit.sh text eol=lf -DockerEntrypoint.sh text eol=lf frontend/src/generated/** text eol=lf frontend/public/openapi.json text eol=lf frontend/src/test/__snapshots__/** text eol=lf - -# Cloud-init deploy assets are consumed on Linux — force LF regardless of host. +*.go text eol=lf deploy/**/*.yaml text eol=lf \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 9cd83d6e4..83bb952e8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -115,6 +115,35 @@ "$go" ] }, + { + "label": "go: golangci-lint run", + "type": "shell", + "command": "golangci-lint", + "args": [ + "run" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [ + "$go" + ] + }, + { + "label": "go: golangci-lint run --fix", + "type": "shell", + "command": "golangci-lint", + "args": [ + "run", + "--fix" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [ + "$go" + ] + }, { "label": "frontend: ncu -u", "type": "shell",