Skip to content

Commit

Permalink
ci(golangci): autofix where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Dec 11, 2023
1 parent 890c8fc commit 0c724e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ linters-settings:
# Minimal code complexity to report.
# Default: 30 (but we recommend 10-20)
min-complexity: 20
gofmt:
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
dupl:
threshold: 100
funlen:
Expand Down
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"go.diagnostic.vulncheck": "Imports",
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
"--fast",
"--fix"
],
"go.testFlags": [
"-v"
]
],
"go.useLanguageServer": true,
"gopls": {
"formatting.gofumpt": true,
},
}

0 comments on commit 0c724e9

Please sign in to comment.