Exemplo n.º 1
0
 public PolicyConfig()
 {
     ClassConfig     = new ClassConfig();
     StructConfig    = new ClassConfig();
     InterfaceConfig = new ClassConfig();
     DelegateConfig  = new DelegateConfig();
     MethodConfig    = new MethodConfig();
     EventConfig     = new EventConfig();
     FieldConfig     = new FieldConfig();
     PropertyConfig  = new PropertyConfig();
     EnumConfig      = new EnumConfig();
 }
Exemplo n.º 2
0
        public PolicyConfig LoadDefaults()
        {
            ClassConfig.LoadDefaults();
            StructConfig.LoadDefaults();
            InterfaceConfig.LoadDefaults();
            DelegateConfig.LoadDefaults();
            MethodConfig.LoadDefaults();
            EventConfig.LoadDefaults();
            FieldConfig.LoadDefaults();
            PropertyConfig.LoadDefaults();
            EnumConfig.LoadDefaults();

            SkipMerges    = true;
            SkipBranches  = true;
            SkipRollbacks = true;
            SkipUndeletes = true;

            return(this);
        }
Exemplo n.º 3
0
        public void ToggleRuleActivation(bool activate, bool recursive = true)
        {
            SkipMerges    = activate;
            SkipBranches  = activate;
            SkipRollbacks = activate;
            SkipUndeletes = activate;

            if (!recursive)
            {
                return;
            }

            ClassConfig.ToggleRuleActivation(activate);
            StructConfig.ToggleRuleActivation(activate);
            InterfaceConfig.ToggleRuleActivation(activate);
            DelegateConfig.ToggleRuleActivation(activate);
            MethodConfig.ToggleRuleActivation(activate);
            EventConfig.ToggleRuleActivation(activate);
            FieldConfig.ToggleRuleActivation(activate);
            PropertyConfig.ToggleRuleActivation(activate);
            EnumConfig.ToggleRuleActivation(activate);
        }