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