Skip to content

Commit

Permalink
chore: Add vscode linting config
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Sep 3, 2024
1 parent 2b84b6e commit 6697f1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{}
{
"go.lintTool": "golangci-lint",
"go.lintFlags": ["run", "--enable=errcheck"],
"go.toolsEnvVars": {
"GO111MODULE": "on"
},
"go.lintOnSave": "package",
"go.vetOnSave": "package",
"go.useLanguageServer": true
}
3 changes: 3 additions & 0 deletions golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
linters:
enable:
- errcheck

0 comments on commit 6697f1d

Please sign in to comment.