From a4d21d783883aef05ac6cf627a43aafc994b6b98 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Thu, 24 Aug 2023 07:38:08 +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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 2492e50..f79c3b8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,19 +6,28 @@ linters: enable: - asciicheck - bidichk + - containedctx + - dupword - durationcheck - errcheck - errchkjson + - errorlint - exhaustive - exportloopref - goconst + - godot - gofmt - goimports - gosimple - govet - ineffassign + - makezero - misspell - nilerr + - nosprintfhostport + - prealloc + - predeclared + - reassign - revive - staticcheck - tparallel