public override void Configure(AnalyzersConfiguration config)
        {
            base.Configure(config);

            this.disallowedHosts = this.GetConfigurationValue(nameof(DisallowedHosts).ToLowerInvariant(), Array.Empty <string>()).ToImmutableArray();
            this.excludedHosts   = this.GetConfigurationValue(nameof(ExcludedHosts).ToLowerInvariant(), Array.Empty <string>()).ToImmutableArray();

            this.minimumHostLength = this.disallowedHosts.Any() ? this.disallowedHosts.Min(h => h.Length) : 0;
            this.HasHosts          = this.disallowedHosts.Any();
        }
        public virtual void Configure(AnalyzersConfiguration configuration)
        {
            this.configuration = configuration;

            var levelValue = this.GetConfigurationValue("level", this.DiagnosticLevel.ToString());

            if (Enum.TryParse <DiagnosticLevel>(levelValue, true, out var level))
            {
                this.DiagnosticLevel = level;
            }
        }