forked from gitea/gitea-vet
4c10dca949
Check `SPDX-License-Identifier` in file headers. Related to https://github.com/go-gitea/gitea/pull/21840 Co-authored-by: Jason Song <i@wolfogre.com> Reviewed-on: gitea/gitea-vet#21 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Xinyu Zhou <i@sourcehut.net> Co-authored-by: Jason Song <wolfogre@noreply.gitea.io> Co-committed-by: Jason Song <wolfogre@noreply.gitea.io>
21 lines
343 B
Go
21 lines
343 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package main
|
|
|
|
import (
|
|
"code.gitea.io/gitea-vet/checks"
|
|
|
|
"golang.org/x/tools/go/analysis/unitchecker"
|
|
)
|
|
|
|
func main() {
|
|
unitchecker.Main(
|
|
checks.DenylistImports,
|
|
checks.Imports,
|
|
checks.License,
|
|
checks.Migrations,
|
|
checks.ModelsSession,
|
|
)
|
|
}
|