private PSRuleOption(string sourcePath, PSRuleOption option)
        {
            SourcePath = sourcePath;

            // Set from existing option instance
            Configuration = new ConfigurationOption(option?.Configuration);
            Output        = new OutputOption(option?.Output);
        }
        private static PSRuleOption Combine(PSRuleOption o1, PSRuleOption o2)
        {
            var result = new PSRuleOption(o1?.SourcePath ?? o2?.SourcePath, o1);

            result.Configuration = ConfigurationOption.Combine(result.Configuration, o2?.Configuration);
            result.Output        = OutputOption.Combine(result.Output, o2?.Output);
            return(result);
        }
 public PSRuleOption()
 {
     // Set defaults
     Output = new OutputOption();
 }
 public PSRuleOption()
 {
     // Set defaults
     Configuration = new ConfigurationOption();
     Output        = new OutputOption();
 }