@InternalApi @Deprecated public static RuleSets getRuleSets(String rulesets, RuleSetFactory factory)
Creates a new rulesets with the given string. The resulting rulesets will contain all referenced rulesets.
rulesets
- the string with the rulesets to load
factory
- the ruleset factory
IllegalArgumentException
- if rulesets is empty (means, no rules have been found) or if a ruleset couldn't be found.
@InternalApi @Deprecated public static RuleSets getRuleSetsWithBenchmark(String rulesets, RuleSetFactory factory)
rulesets
- the string with the rulesets to load
factory
- the ruleset factory
IllegalArgumentException
- if rulesets is empty (means, no rules have been found) or if a ruleset couldn't be found.
@InternalApi @Deprecated public static RuleSetFactory getRulesetFactory(PMDConfiguration configuration, ResourceLoader resourceLoader)
@Deprecated public static RuleSetFactory createFactory(PMDConfiguration configuration)
Returns a ruleset factory which uses the classloader for PMD classes to resolve resource references.
configuration
- PMD configuration, contains info about the factory parameters
createFactory(PMDConfiguration, ClassLoader)
public static RuleSetFactory defaultFactory()
Deprecated.
Returns a ruleset factory with default parameters. It doesn't prune rules based on priority, and doesn't warn for deprecations.
RuleSetLoader
@Deprecated public static RuleSetFactory createFactory(PMDConfiguration configuration, ClassLoader classLoader)
Returns a ruleset factory which uses the provided
ClassLoader
to resolve resource references. It warns for deprecated rule usages.
configuration
- PMD configuration, contains info about the factory parameters
classLoader
- Class loader to load resources
createFactory(PMDConfiguration)
@Deprecated public static RuleSetFactory createFactory(ClassLoader classLoader, RulePriority minimumPriority, boolean warnDeprecated, boolean enableCompatibility)
Returns a ruleset factory which uses the provided
ClassLoader
to resolve resource references.
minimumPriority
- Minimum priority for rules to be included
warnDeprecated
- If true, print warnings when deprecated rules are included
enableCompatibility
- If true, rule references to moved rules are mapped to their new location if they are known
classLoader
- Class loader to load resources
createFactory(PMDConfiguration)
@Deprecated public static RuleSetFactory createFactory(RulePriority minimumPriority, boolean warnDeprecated, boolean enableCompatibility)
Returns a ruleset factory which uses the classloader for PMD classes to resolve resource references.
minimumPriority
- Minimum priority for rules to be included
warnDeprecated
- If true, print warnings when deprecated rules are included
enableCompatibility
- If true, rule references to moved rules are mapped to their new location if they are known
createFactory(PMDConfiguration)
@Deprecated public static RuleSetFactory createFactory(RulePriority minimumPriority, boolean warnDeprecated, boolean enableCompatibility, boolean includeDeprecatedRuleReferences)
Returns a ruleset factory which uses the classloader for PMD classes to resolve resource references.
minimumPriority
- Minimum priority for rules to be included
warnDeprecated
- If true, print warnings when deprecated rules are included
enableCompatibility
- If true, rule references to moved rules are mapped to their new location if they are known
includeDeprecatedRuleReferences
- If true, deprecated rule references are retained. Usually, these references are ignored, since they indicate renamed/moved rules, and the referenced rule is often included in the same ruleset. Enabling this might result in duplicated rules.
createFactory(PMDConfiguration)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4