@@ -172,19 +172,22 @@ assert.JSONEq(t, expectedJSON, actualJSON)
172172
173173** golangci-lint** is integrated and runs as part of ` make lint ` :
174174- Configuration: ` .golangci.yml ` (version 2 format)
175- - Enabled linters: ` misspell ` , ` unconvert ` , ` testifylint `
176- - Disabled linters: ` gosec ` , ` errcheck ` , ` gocritic ` , ` revive `
175+ - Enabled linters: ` misspell ` , ` unconvert `
176+ - Disabled linters: ` gosec ` , ` testifylint ` , ` errcheck ` , ` gocritic ` , ` revive `
177177- Install: ` make install ` (installs golangci-lint v2.8.0)
178178- Run manually: ` golangci-lint run --timeout=5m `
179179
180- ** testifylint** : Automatically catches common testify mistakes:
181- - Suggests ` assert.Empty(t, x) ` instead of ` assert.True(t, len(x) == 0) `
182- - Suggests ` assert.True(t, x) ` instead of ` assert.Equal(t, true, x) `
183- - Suggests ` assert.NoError(t, err) ` instead of ` assert.Nil(t, err) `
180+ ** testifylint** : Available but disabled due to requiring extensive test refactoring across the codebase.
181+ - Automatically catches common testify mistakes:
182+ - Suggests ` assert.Empty(t, x) ` instead of ` assert.True(t, len(x) == 0) `
183+ - Suggests ` assert.True(t, x) ` instead of ` assert.Equal(t, true, x) `
184+ - Suggests ` assert.NoError(t, err) ` instead of ` assert.Nil(t, err) `
185+ - To run on specific files: ` golangci-lint run --enable=testifylint --timeout=5m <files> `
186+ - To run on entire codebase: ` golangci-lint run --enable=testifylint --timeout=5m `
184187
185- ** Note** : Some linters (gosec, errcheck) are disabled to minimize noise. Enable them for stricter checks:
188+ ** Note** : Some linters (gosec, testifylint, errcheck) are disabled to minimize noise. Enable them for stricter checks:
186189``` bash
187- golangci-lint run --enable=gosec,errcheck --timeout=5m
190+ golangci-lint run --enable=gosec,testifylint, errcheck --timeout=5m
188191```
189192
190193## Test Structure
0 commit comments