chore(lint): add goerr113 linter

- Change database id to be `uint` instead of `int`
- Define and use sentinel errors
- Return `string` instead of `error` when appropriate (linode)
This commit is contained in:
Quentin McGaw
2022-08-30 01:23:45 +00:00
parent 88474c8a3a
commit 7fcd0f902b
12 changed files with 67 additions and 47 deletions

View File

@@ -16,8 +16,9 @@ issues:
- gomnd
- path: _test\.go
linters:
- dupl
- containedctx
- dupl
- goerr113
linters:
enable:
@@ -51,7 +52,7 @@ linters:
- gomoddirectives
- goprintffuncname
- gosec
# - goerr113 # TODO
- goerr113
- grouper
- importas
- interfacebloat