feat: Add config file validation (#2011)

This commit is contained in:
Jan-Otto Kröpke
2025-04-24 23:45:21 +02:00
committed by GitHub
parent 554607fee2
commit 769363d157
25 changed files with 107 additions and 66 deletions

View File

@@ -35,10 +35,10 @@ import (
const Name = "iis"
type Config struct {
SiteInclude *regexp.Regexp `yaml:"site_include"`
SiteExclude *regexp.Regexp `yaml:"site_exclude"`
AppInclude *regexp.Regexp `yaml:"app_include"`
AppExclude *regexp.Regexp `yaml:"app_exclude"`
SiteInclude *regexp.Regexp `yaml:"site-include"`
SiteExclude *regexp.Regexp `yaml:"site-exclude"`
AppInclude *regexp.Regexp `yaml:"app-include"`
AppExclude *regexp.Regexp `yaml:"app-exclude"`
}
//nolint:gochecknoglobals