golangci-lint: include golint docstring exceptions
This commit is contained in:
parent
4b5e39f83c
commit
07e4db8baf
3 changed files with 11 additions and 2 deletions
|
@ -8,7 +8,7 @@ linters-settings:
|
||||||
local-prefixes: "github.com/chihaya/chihaya"
|
local-prefixes: "github.com/chihaya/chihaya"
|
||||||
gosec:
|
gosec:
|
||||||
excludes:
|
excludes:
|
||||||
- "G404" # Allow the usage of math/rand
|
- "G404" # Allow the usage of math/rand
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- "bidichk"
|
- "bidichk"
|
||||||
|
@ -41,3 +41,10 @@ linters:
|
||||||
- "varcheck"
|
- "varcheck"
|
||||||
- "wastedassign"
|
- "wastedassign"
|
||||||
- "whitespace"
|
- "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
|
||||||
|
|
|
@ -187,7 +187,7 @@ func (qp *QueryParams) String(key string) (string, bool) {
|
||||||
return value, ok
|
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.
|
// cast the uint64 to your desired length.
|
||||||
func (qp *QueryParams) Uint(key string, bitSize int) (uint64, error) {
|
func (qp *QueryParams) Uint(key string, bitSize int) (uint64, error) {
|
||||||
str, exists := qp.params[key]
|
str, exists := qp.params[key]
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ReloadSignals are the signals that the current OS will send to the process
|
||||||
|
// when a configuration reload is requested.
|
||||||
var ReloadSignals = []os.Signal{
|
var ReloadSignals = []os.Signal{
|
||||||
syscall.SIGUSR1,
|
syscall.SIGUSR1,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue