diff --git a/.golangci.yaml b/.golangci.yaml index 40e430b62..58ad2cbea 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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: diff --git a/.vscode/settings.json b/.vscode/settings.json index 9edfa11a6..b929891fa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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, + }, } \ No newline at end of file