From 1937a8be6f6b146805a58b7d78d3502cc680b9bc Mon Sep 17 00:00:00 2001 From: Greg Soltis Date: Tue, 3 May 2022 10:32:44 -0700 Subject: [PATCH] Disallow naked returns --- cli/.golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/.golangci.yml b/cli/.golangci.yml index a6e48004a9a3f..b7a7f5b72672f 100644 --- a/cli/.golangci.yml +++ b/cli/.golangci.yml @@ -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