From c4b82d2db3ad8fd3f8ce4a99439e60ad3c9a6380 Mon Sep 17 00:00:00 2001 From: h5law Date: Fri, 12 Jan 2024 17:48:24 +0000 Subject: [PATCH] feat: exclude errors.go file for line length check --- .golangci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b1ef9f745..9452981b7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,16 +18,13 @@ linters: linters-settings: lll: - line-length: 150 + line-length: 120 tab-width: 4 gci: sections: - standard # std lib - default # external - prefix(github.com/pokt-network/poktroll) # local imports - - blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled. - - dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled. - - alias # Alias section: contains all alias imports. This section is not present unless explicitly enabled. skip-generated: true custom-order: true @@ -84,6 +81,11 @@ issues: - path: _test\.go$ linters: - errcheck + # Exclude line length check for errors.go files as they are easier to read + # as as single line. + - path: ^.*/errors\.go$ + links: + - lll # TODO_IMPROVE: see https://golangci-lint.run/usage/configuration/#issues-configuration #new: true, #fix: true,