Skip to content

Commit

Permalink
ci: Add golangci-lint, flake.nix to run it and VSCode config for it (#17
Browse files Browse the repository at this point in the history
)
  • Loading branch information
thessem committed Aug 23, 2024
1 parent 9d655f8 commit 921f5b6
Show file tree
Hide file tree
Showing 5 changed files with 526 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .golangci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[linters]
enable = [
"errcheck",
"gosimple",
"govet",
"ineffassign",
"staticcheck",
"unused",
"gofumpt",
]
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"go.formatTool": "gofumpt",
"go.lintTool": "golangci-lint",
"go.lintFlags": ["-c", ".golangci.toml", "--fast"]
}
Loading

0 comments on commit 921f5b6

Please sign in to comment.