core/config.go
Function ParseConfig
has 133 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func ParseConfig(conf *Config) {
// The use of FlagSet allows us to parse config multiple times, which is useful for unit tests.
flagSet := flag.NewFlagSet("AutoSpotting", flag.ExitOnError)