From 38916c9f7f9f8c56790a7d4eae4b088314e7d7a5 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 27 May 2021 15:25:28 +0200 Subject: [PATCH] golangci: enable GoDoc linting golint is scoring pretty low currently, because many exported functions and variables are missing a well-formatted GoDoc comment: https://goreportcard.com/report/github.com/opencontainers/runc Note that `golint` has been depracted, and replaced by `revive`: level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive." Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 96b321019e4..ba74a39ebf3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,5 +8,10 @@ linters: enable: - gofumpt - errorlint + - revive - unconvert - unparam + +issues: + include: + - EXC0002