repochecker: New option to restrict domain where remote file can come from

This commit is contained in:
nemunaire 2023-10-13 23:05:08 +02:00
parent 3e1c01031f
commit 6163d51e5b
3 changed files with 43 additions and 0 deletions

View file

@ -175,6 +175,7 @@ func main() {
flag.BoolVar(&skipBinaryFileCheck, "skip-binary-file", skipBinaryFileCheck, "In Git-LFS check, don't warn files")
flag.IntVar(&ignoreBinaryFileUnder, "skip-binary-files-under", ignoreBinaryFileUnder, "In Git-LFS check, don't warn files under this size")
flag.Var(&checkplugins, "rules-plugins", "List of libraries containing others rules to checks")
flag.Var(&sync.RemoteFileDomainWhitelist, "remote-file-domain-whitelist", "List of domains which are allowed to store remote files")
flag.Parse()
// Do not display timestamp