Skip to content

Commit

Permalink
feat: exclude errors.go file for line length check
Browse files Browse the repository at this point in the history
  • Loading branch information
h5law committed Jan 12, 2024
1 parent 9b4e1c5 commit c4b82d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,

0 comments on commit c4b82d2

Please sign in to comment.