chore(lint): Disable funlen for test functions (#1993)

This adds a regular expression that matches `func Test...` or
`func (suite *Suite) Test...` style functions and disables the length
check. An example from e2e tests that failed lint:

`func (suite *IntegrationTestSuite) TestEip712BasicMessageAuthorization()`
This commit is contained in:
Nick DeLuca 2024-08-07 13:25:18 -07:00 committed by GitHub
parent edf2935f31
commit ab10ce628c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,6 +81,13 @@ linters:
# - whitespace # - whitespace
- wrapcheck - wrapcheck
issues:
exclude-rules:
# Disable funlen for "func Test..." or func (suite *Suite) Test..." type functions
# These functions tend to be descriptive and exceed length limits.
- source: "^func (\\(.*\\) )?Test"
linters:
- funlen
linters-settings: linters-settings:
errcheck: errcheck: