Uses of Class
net.sourceforge.pmd.RuleSet
-
Packages that use RuleSet Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.lang.rule -
-
Uses of RuleSet in net.sourceforge.pmd
Methods in net.sourceforge.pmd that return RuleSet Modifier and Type Method Description static RuleSetRuleSet. copy(RuleSet original)Creates a copy of the given ruleset.static RuleSetRuleSet. create(String name, String description, String fileName, Collection<Pattern> excludePatterns, Collection<Pattern> includePatterns, Iterable<? extends Rule> rules)Creates a new ruleset with the given metadata such as name, description, fileName, exclude/include patterns are used.RuleSetRuleSetFactory. createNewRuleSet(String name, String description, String fileName, Collection<String> excludePatterns, Collection<String> includePatterns, Collection<Rule> rules)Deprecated.RuleSetRuleSetFactory. createRuleSet(String referenceString)Deprecated.UseRuleSetLoader.loadFromResource(String)and discard the rest of the list.RuleSetRuleSetFactory. createRuleSet(RuleSetReferenceId ruleSetReferenceId)Deprecated.Will not be replacedRuleSetRuleSetFactory. createRuleSetCopy(RuleSet original)Deprecated.Usecopy(RuleSet)RuleSetRuleSetFactory. createSingleRuleRuleSet(Rule rule)Deprecated.static RuleSetRuleSet. forSingleRule(Rule rule)Creates a new ruleset containing a single rule.RuleSet[]RuleSets. getAllRuleSets()Deprecated.Get all the RuleSets.RuleSetRuleSetLoader. loadFromResource(String rulesetPath)Parses and returns a ruleset from its location.RuleSetRuleSetLoader. loadFromString(String filename, String rulesetXmlContent)Parses and returns a ruleset from string content.Methods in net.sourceforge.pmd that return types with arguments of type RuleSet Modifier and Type Method Description Iterator<RuleSet>RuleSetFactory. getRegisteredRuleSets()Deprecated.List<RuleSet>PmdAnalysis. getRulesets()Iterator<RuleSet>RuleSets. getRuleSetsIterator()Deprecated.List<RuleSet>RuleSetLoader. getStandardRuleSets()Returns an Iterator of RuleSet objects loaded from descriptions from the "categories.properties" resource for each language.List<RuleSet>RuleSetLoader. loadFromResources(String first, String... rest)Parses several resources into a list of rulesets.List<RuleSet>RuleSetLoader. loadFromResources(Collection<String> paths)Parses several resources into a list of rulesets.List<RuleSet>RuleSetLoader. loadRuleSetsWithoutException(List<String> rulesetPaths)Loads a list of rulesets, if any has an error, report it on the contextual error reporter instead of aborting, and continue loading the rest.Methods in net.sourceforge.pmd with parameters of type RuleSet Modifier and Type Method Description voidRuleChain. add(RuleSet ruleSet)Deprecated.Add all Rules from the given RuleSet which want to participate in the RuleChain.voidPmdAnalysis. addRuleSet(RuleSet ruleSet)Add a new ruleset.voidRuleSets. addRuleSet(RuleSet ruleSet)Deprecated.UseRuleSets(List)and don't mutate RuleSets after creationstatic RuleSetRuleSet. copy(RuleSet original)Creates a copy of the given ruleset.RuleSetRuleSetFactory. createRuleSetCopy(RuleSet original)Deprecated.Usecopy(RuleSet)voidRuleSetWriter. write(RuleSet ruleSet)Method parameters in net.sourceforge.pmd with type arguments of type RuleSet Modifier and Type Method Description voidPmdAnalysis. addRuleSets(Collection<RuleSet> ruleSets)Add several rulesets at once.static ReportPMD. processFiles(PMDConfiguration configuration, List<RuleSet> rulesets, Collection<? extends DataSource> files, List<Renderer> renderers)Deprecated.UsePmdAnalysisConstructors in net.sourceforge.pmd with parameters of type RuleSet Constructor Description RuleSet(RuleSet rs)RuleSets(RuleSet ruleSet)Deprecated.Public constructor.Constructor parameters in net.sourceforge.pmd with type arguments of type RuleSet Constructor Description RuleSets(List<RuleSet> ruleSet)Deprecated.Aggregate the given rulesets. -
Uses of RuleSet in net.sourceforge.pmd.lang.rule
Fields in net.sourceforge.pmd.lang.rule with type parameters of type RuleSet Modifier and Type Field Description protected Map<RuleSet,List<Rule>>AbstractRuleChainVisitor. ruleSetRulesDeprecated.These are all the rules participating in the RuleChain, grouped by RuleSet.Methods in net.sourceforge.pmd.lang.rule with parameters of type RuleSet Modifier and Type Method Description voidAbstractRuleChainVisitor. add(RuleSet ruleSet, Rule rule)Deprecated.voidRuleChainVisitor. add(RuleSet ruleSet, Rule rule)Deprecated.Add the given rule to the visitor.
-