Class CheckStyleRules


  • public class CheckStyleRules
    extends Object
    Reads the meta data of the Checkstyle rules from the DocBook files of the Checkstyle distribution.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • CheckStyleRules

        public CheckStyleRules()
        Loads the available rules into a map.
    • Method Detail

      • getRules

        public Collection<Rule> getRules()
        Returns all Checkstyle rules.
        Returns:
        all Checkstyle rules
      • getRule

        public Rule getRule​(String name)
        Returns the Checkstyle rule with the specified name.
        Parameters:
        name - the name of the rule
        Returns:
        the Checkstyle rule with the specified name.
      • getDescription

        public String getDescription​(String name)
        Returns the description of the Checkstyle rule with the specified name.
        Parameters:
        name - the name of the rule
        Returns:
        the description for the specified rule