You've already forked testing-go-code-with-postgres
mirror of
https://github.com/xorcare/testing-go-code-with-postgres.git
synced 2025-06-30 23:23:40 +02:00
Add linter 'gofumpt'
This commit is contained in:
@ -3,6 +3,7 @@ linters:
|
|||||||
enable:
|
enable:
|
||||||
- errcheck
|
- errcheck
|
||||||
- godot
|
- godot
|
||||||
|
- gofumpt
|
||||||
- goimports
|
- goimports
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
@ -19,6 +20,8 @@ linters:
|
|||||||
linters-settings:
|
linters-settings:
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
|
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
|
||||||
|
gofumpt:
|
||||||
|
module-path: github.com/xorcare/testing-go-code-with-postgres
|
||||||
unused:
|
unused:
|
||||||
field-writes-are-uses: false
|
field-writes-are-uses: false
|
||||||
post-statements-are-reads: true
|
post-statements-are-reads: true
|
||||||
|
@ -51,7 +51,6 @@ func (r *UserRepository) CreateUser(ctx context.Context, user User) error {
|
|||||||
user.Username,
|
user.Username,
|
||||||
user.CreatedAt,
|
user.CreatedAt,
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
const format = "failed insertion of User to database: %v"
|
const format = "failed insertion of User to database: %v"
|
||||||
return fmt.Errorf(format, err)
|
return fmt.Errorf(format, err)
|
||||||
|
Reference in New Issue
Block a user