Skip to content

Commit

Permalink
Merge pull request vercel#1177 from vercel/gsoltis/disallow_naked_ret…
Browse files Browse the repository at this point in the history
…urns

Disallow naked returns
  • Loading branch information
Greg Soltis authored May 3, 2022
2 parents 38956b5 + fcc91ac commit d2a0c82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ linters:
- govet
- staticcheck
- revive
- nakedret

linters-settings:
nakedret:
# Aggressively disallow naked returns
max-func-lines: 3

issues:
exclude-use-default: false
Expand Down

0 comments on commit d2a0c82

Please sign in to comment.