Exemplo n.º 1
0
        public static RootConfiguration Bind(JsonElement element, string?configurationPath = null, bool disableAnalyzers = false)
        {
            var cloud         = CloudConfiguration.Bind(element.GetProperty("cloud"), configurationPath);
            var moduleAliases = ModuleAliasesConfiguration.Bind(element.GetProperty("moduleAliases"), configurationPath);
            var analyzers     = disableAnalyzers ? AnalyzersConfiguration.Empty : new AnalyzersConfiguration(element.GetProperty("analyzers"));

            return(new(cloud, moduleAliases, analyzers, configurationPath));
        }