From decb5112b2bdb4580eb72a1a6b81a5049a35dabd Mon Sep 17 00:00:00 2001 From: jholdstock Date: Wed, 23 Aug 2023 13:57:19 +0100 Subject: [PATCH] build: Add extra linters. Some of these cover points which have recently been highlighted in reviews, such as contexts contained in structs, slices initialized with zero length, and periods missing from the end of comments. --- .golangci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2492e503..42fb897c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,24 +6,33 @@ linters: enable: - asciicheck - bidichk + - containedctx - durationcheck - errcheck - errchkjson + - errorlint - exhaustive - exportloopref - goconst + - godot - gofmt - goimports - gosimple - govet - ineffassign + - makezero - misspell - nilerr + - nosprintfhostport + - prealloc + - predeclared + - reassign - revive - staticcheck - tparallel - - typecheck - - unconvert - unparam - unused - vetshadow + # - wsl + # - whitespace + # - nlreturn