Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Julie Qiu ec00351634 all.bash: update usage
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>
2021-11-01 14:06:42 +00:00
Julie Qiu 12ab535e1f all.bash: check license headers
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>
2021-10-29 13:02:12 +00:00
Julie Qiu 5720154d41 all.bash: add go mod tidy
Change-Id: I7ebdb44dc2c8208f9fabafe0a3e58247660297c0
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/357010
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>
2021-10-26 20:09:21 +00:00
Julie Qiu 7da183701e all.bash: add initial setup
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>
2021-10-18 20:46:20 +00:00