Class FxCopRuleSet


  • public class FxCopRuleSet
    extends Object
    Internal set containing rules for FxCop.
    Author:
    Erik Ramfelt
    • Constructor Detail

      • FxCopRuleSet

        public FxCopRuleSet()
    • Method Detail

      • addRule

        public void addRule​(Element element)
        Parse the element and insert the rule into the rule set.
        Parameters:
        element - the element
      • contains

        public boolean contains​(String category,
                                String checkId)
        Returns if the rule set contains a rule for the specified category and id
        Parameters:
        category - the rule category
        checkId - the rule id
        Returns:
        true if the rule set contains a rule for the specified category and id, false otherwise
      • getRule

        @CheckForNull
        public FxCopRule getRule​(String category,
                                 String checkId)
        Returns the specified rule if it exists
        Parameters:
        category - the rule category
        checkId - the id of the rule
        Returns:
        the rule; null otherwise