summaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-25 23:16:24 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-25 23:27:28 +1100
commitf9979879a15f242294d65147ac0012ffadaeba0d (patch)
tree870c81a9725f06b4f121458ef89808b25787170c /.golangci.yml
parentcf74c2cf96ea99e195f82c0864daadaad2c09d17 (diff)
no more naked returns
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 358a5d12a..de90dc516 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -13,6 +13,7 @@ linters:
- unconvert
- exhaustive
- makezero
+ - nakedret
# - goconst # TODO: enable and fix issues
fast: false
@@ -20,5 +21,9 @@ linters-settings:
exhaustive:
default-signifies-exhaustive: true
+ nakedret:
+ # the gods will judge me but I just don't like naked returns at all
+ max-func-lines: 0
+
run:
go: 1.18