The all.bash usage information is updated to include descriptions
for go mod tidy and go tests.
Change-Id: I1c4fdeaa72c41a4e41d48020d0b46ba037462aec
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/359411
Trust: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Check if all .go and .sh files contains the appropriate license header.
Also add support for info, err and die to pretty print messages in color.
Change-Id: Ifb0234e7be5594bded22a2a6743d6a020832896a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/359216
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
An all.bash file is added, which runs these go linters on the vulndb
repo:
* go vet: examines Go source code and reports suspicious constructs
* staticcheck: runs static analysis on Go source code
* unparam: finds unused params in Go source code
* misspell: checks for commonly misspelled English words
Ideally this would run in CI, but for now this is meant to be used
during development to quickly find bugs.
Change-Id: Ic6005f64a8f180852ae0b8556d26341dcf2e6603
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/356349
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>