summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
d9fddc0)
Nlreturn checks spacing before returns and branch statements. Its short-
block allowance keeps a declaration with its immediate use, as the Go
rules require. Longer blocks have an empty line before they return or
continue.
- testifylint
- revive
- wrapcheck
- testifylint
- revive
- wrapcheck
+ nlreturn:
+ # go-code: Keep a short declaration with its immediate use.
+ block-size: 2
wrapcheck:
# go-code: Return ctx.Err() directly.
extra-ignore-sigs:
wrapcheck:
# go-code: Return ctx.Err() directly.
extra-ignore-sigs:
if err == nil || ctx.Err() != nil || !w.retrying || !w.linked {
w.retrying = false
w.mutex.Unlock()
if err == nil || ctx.Err() != nil || !w.retrying || !w.linked {
w.retrying = false
w.mutex.Unlock()
if len(f.connectErrors) > 0 {
err := f.connectErrors[0]
f.connectErrors = f.connectErrors[1:]
if len(f.connectErrors) > 0 {
err := f.connectErrors[0]
f.connectErrors = f.connectErrors[1:]
}
messages[len(messages)-1].Text += "\n" + line
}
messages[len(messages)-1].Text += "\n" + line