Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FEATURE (formatters): Add gofumpt and gci formatters

Rostislav Dugin880a7488e919
diff --git a/agent/.golangci.yml b/agent/.golangci.yml
index a773c8b5..ea2a327a 100644
--- a/agent/.golangci.yml
+++ b/agent/.golangci.yml
@@ -14,10 +14,18 @@ linters:
formatters:
enable:
- - gofmt
+ - gofumpt
- golines
- - goimports
+ - gci
settings:
golines:
max-len: 120
+ gofumpt:
+ module-path: databasus-agent
+ extra-rules: true
+ gci:
+ sections:
+ - standard
+ - default
+ - localmodule
diff --git a/backend/.golangci.yml b/backend/.golangci.yml
index c10b4aa5..6a13c517 100644
--- a/backend/.golangci.yml
+++ b/backend/.golangci.yml
@@ -14,10 +14,18 @@ linters:
formatters:
enable:
- - gofmt
+ - gofumpt
- golines
- - goimports
+ - gci
settings:
golines:
max-len: 120
+ gofumpt:
+ module-path: databasus-backend
+ extra-rules: true
+ gci:
+ sections:
+ - standard
+ - default
+ - localmodule