golangci-lint: include golint docstring exceptions

This commit is contained in:
Jimmy Zelinskie 2022-01-18 13:33:46 -05:00
parent 4b5e39f83c
commit 07e4db8baf
3 changed files with 11 additions and 2 deletions

View file

@ -8,7 +8,7 @@ linters-settings:
local-prefixes: "github.com/chihaya/chihaya"
gosec:
excludes:
- "G404" # Allow the usage of math/rand
- "G404" # Allow the usage of math/rand
linters:
enable:
- "bidichk"
@ -41,3 +41,10 @@ linters:
- "varcheck"
- "wastedassign"
- "whitespace"
issues:
include:
- "EXC0012" # Exported should have comment
- "EXC0012" # Exported should have comment
- "EXC0013" # Package comment should be of form
- "EXC0014" # Comment on exported should be of form
- "EXC0015" # Should have a package comment

View file

@ -187,7 +187,7 @@ func (qp *QueryParams) String(key string) (string, bool) {
return value, ok
}
// Uint64 returns a uint parsed from a query. After being called, it is safe to
// Uint returns a uint parsed from a query. After being called, it is safe to
// cast the uint64 to your desired length.
func (qp *QueryParams) Uint(key string, bitSize int) (uint64, error) {
str, exists := qp.params[key]

View file

@ -8,6 +8,8 @@ import (
"syscall"
)
// ReloadSignals are the signals that the current OS will send to the process
// when a configuration reload is requested.
var ReloadSignals = []os.Signal{
syscall.SIGUSR1,
}