github.com/khulnasoft/codebase@v0.0.0-20231214144635-a707781cbb24/errorformat/fmts/go.go (about) 1 package fmts 2 3 func init() { 4 const lang = "go" 5 6 register(&Fmt{ 7 Name: "golint", 8 Errorformat: []string{ 9 `%f:%l:%c: %m`, 10 }, 11 Description: "linter for Go source code", 12 URL: "https://github.com/golang/lint", 13 Language: lang, 14 }) 15 16 register(&Fmt{ 17 Name: "govet", 18 Errorformat: []string{ 19 `%f:%l: %m`, 20 `%-G%.%#`, 21 }, 22 Description: "Vet examines Go source code and reports suspicious problems", 23 URL: "https://golang.org/cmd/vet/", 24 Language: lang, 25 }) 26 27 register(&Fmt{ 28 Name: "golangci-lint", 29 Errorformat: []string{ 30 `%E%f:%l:%c: %m`, 31 `%E%f:%l: %m`, 32 `%C%.%#`, 33 }, 34 Description: "(golangci-lint run --out-format=line-number) GolangCI-Lint is a linters aggregator.", 35 URL: "https://github.com/golangci/golangci-lint", 36 Language: lang, 37 }) 38 39 register(&Fmt{ 40 Name: "go-consistent", 41 Errorformat: []string{ 42 `%f:%l:%c: %m`, 43 }, 44 Description: "Source code analyzer that helps you to make your Go programs more consistent", 45 URL: "https://github.com/quasilyte/go-consistent", 46 Language: lang, 47 }) 48 49 register(&Fmt{ 50 Name: "gosec", 51 Errorformat: []string{ 52 `%f:%l:%c: %m`, 53 }, 54 Description: "(gosec -fmt=golint) Golang Security Checker", 55 URL: "https://github.com/securego/gosec", 56 Language: lang, 57 }) 58 59 register(&Fmt{ 60 Name: "staticcheck", 61 Errorformat: []string{ 62 "%f:%l:%c: %m", 63 }, 64 Description: "Golang Static Analysis", 65 URL: "https://staticcheck.io", 66 Language: lang, 67 }) 68 }