From 0eaace3066fe848a337df1e20c50e93974ac56fd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 31 Aug 2022 09:18:36 +0200 Subject: [PATCH] golangci-lint: sort linters in config file THis makes it easier to find which linters are enabled when going through the list. Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index aad6acff2..748863672 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,19 +1,19 @@ linters: enable: - - structcheck - - varcheck - - staticcheck - - unconvert + - exportloopref # Checks for pointers to enclosing loop variables - gofmt - goimports - - revive - - ineffassign - - vet - - unused - - misspell - gosec - - exportloopref # Checks for pointers to enclosing loop variables + - ineffassign + - misspell + - revive + - staticcheck + - structcheck - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 + - unconvert + - unused + - varcheck + - vet disable: - errcheck