Add labels to tasks (#45)
This commit is contained in:
parent
d39007baa0
commit
6b40df50d3
45 changed files with 9101 additions and 57 deletions
16
vendor/honnef.co/go/tools/cmd/staticcheck/README.md
vendored
Normal file
16
vendor/honnef.co/go/tools/cmd/staticcheck/README.md
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# staticcheck
|
||||
|
||||
_staticcheck_ is `go vet` on steroids, applying a ton of static analysis
|
||||
checks you might be used to from tools like ReSharper for C#.
|
||||
|
||||
## Installation
|
||||
|
||||
Staticcheck requires Go 1.6 or later.
|
||||
|
||||
go get honnef.co/go/tools/cmd/staticcheck
|
||||
|
||||
## Documentation
|
||||
|
||||
Detailed documentation can be found on
|
||||
[staticcheck.io](https://staticcheck.io/docs/staticcheck).
|
||||
|
||||
23
vendor/honnef.co/go/tools/cmd/staticcheck/staticcheck.go
vendored
Normal file
23
vendor/honnef.co/go/tools/cmd/staticcheck/staticcheck.go
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// staticcheck detects a myriad of bugs and inefficiencies in your
|
||||
// code.
|
||||
package main // import "honnef.co/go/tools/cmd/staticcheck"
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"honnef.co/go/tools/lint/lintutil"
|
||||
"honnef.co/go/tools/staticcheck"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fs := lintutil.FlagSet("staticcheck")
|
||||
gen := fs.Bool("generated", false, "Check generated code")
|
||||
fs.Parse(os.Args[1:])
|
||||
c := staticcheck.NewChecker()
|
||||
c.CheckGenerated = *gen
|
||||
cfg := lintutil.CheckerConfig{
|
||||
Checker: c,
|
||||
ExitNonZero: true,
|
||||
}
|
||||
lintutil.ProcessFlagSet([]lintutil.CheckerConfig{cfg}, fs)
|
||||
}
|
||||
Reference in a new issue