A golang vet tool for gitea development
Go to file
yp05327 621ce6ac7b
All checks were successful
build and test / build and test (push) Successful in 27s
Add migration count check (#27)
Add checks for no matching of migration functions count and the length of `migrations` defined in `migrations.go`

For example, for `v284 -> v285`
![image](/attachments/e43c465e-d41f-4755-950d-d3565690ea2a)
remove line 556:
![image](/attachments/a8598239-f123-415a-8090-3bdb781ce6ab)
run `make lint-go-vet`:
![image](/attachments/7a55b7be-6c19-41b5-995f-98d4aa5a7100)

Reviewed-on: #27
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: yp05327 <576951401@qq.com>
Co-committed-by: yp05327 <576951401@qq.com>
2024-01-23 02:36:32 +00:00
.gitea/workflows switch to actions (#26) 2023-04-19 23:03:51 +08:00
checks Add migration count check (#27) 2024-01-23 02:36:32 +00:00
.changelog.yml Changelog 0.2.0 (#7) 2020-07-20 13:45:04 +00:00
.gitignore Initial commit 2020-03-24 22:43:07 -05:00
.golangci.yml Check SPDX-License-Identifier (#21) 2022-12-01 23:58:05 +08:00
CHANGELOG.md Changelog v0.2.2 (#22) 2022-12-02 11:52:05 +08:00
go.mod Correct Import Paths (#6) 2020-07-20 13:29:15 +00:00
go.sum Initial commit 2020-03-24 22:43:07 -05:00
LICENSE Initial commit 2020-03-24 22:43:07 -05:00
main.go Remove DenylistImports (#23) 2023-01-13 10:24:36 +08:00
Makefile switch to actions (#26) 2023-04-19 23:03:51 +08:00
README.md Add migrations check (#5) 2020-05-31 18:38:55 +00:00

gitea-vet

Build Status

go vet tool for Gitea

Analyzer Description
Imports Checks for import sorting. stdlib->code.gitea.io->other
License Checks file headers for some form of Copyright...YYYY...Gitea/Gogs
Migrations Checks for black-listed packages in code.gitea.io/gitea/models/migrations