valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.94k stars 1.76k forks source link

Enable dupword, unconvert linters #1658

Closed alexandear closed 1 year ago

alexandear commented 1 year ago
❯ golangci-lint run
bytesconv_test.go:40:18: unnecessary conversion (unconvert)
        expect := string(html.EscapeString(string(allcases)))
                        ^
fs.go:873:28: unnecessary conversion (unconvert)
        ff, ok := fileCache[string(path)]
                                  ^
fs.go:1597:16: unnecessary conversion (unconvert)
        r := io.Reader(f)
                      ^
client.go:1479:3: Duplicate words (d2) found (dupword)
                //  0(not set)            d2            d2
                ^
client.go:1481:3: Duplicate words (d2) found (dupword)
                //  0(not set)            d2            d2
                ^
http_test.go:3025:9: Duplicate words (size) found (dupword)
                t.Run("limit response body size size", func(t *testing.T) {
                      ^
erikdubbelboer commented 1 year ago

Thanks!