Class TypeShadowsBuiltInNamespaceRule
-
- All Implemented Interfaces:
-
net.sourceforge.pmd.lang.rule.Rule,net.sourceforge.pmd.properties.PropertySource
public class TypeShadowsBuiltInNamespaceRule extends AbstractRule
Finds custom apex types with the same name as standard built-in system and schema types. Declaring such a custom apex type shadows the built-in type which can lead to confusion and unexpected behavior.
- Since:
7.13.0
-
-
Field Summary
Fields Modifier and Type Field Description public Languagelanguagepublic LanguageVersionminimumLanguageVersionpublic LanguageVersionmaximumLanguageVersionpublic Stringnamepublic Stringsincepublic StringruleClasspublic StringruleSetNamepublic Stringmessagepublic Stringdescriptionpublic List<String>examplespublic StringexternalInfoUrlpublic RulePriorityprioritypublic final List<PropertyDescriptor<out Object>>propertyDescriptorspublic final static PropertyDescriptor<Optional<Pattern>>VIOLATION_SUPPRESS_REGEX_DESCRIPTORpublic final static PropertyDescriptor<Optional<String>>VIOLATION_SUPPRESS_XPATH_DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description TypeShadowsBuiltInNamespaceRule()
-
Method Summary
Modifier and Type Method Description voidapply(Node target, RuleContext ctx)-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, deepCopy, dysfunctionReason, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getPriority, getRuleClass, getRuleSetName, getSince, getTargetSelector, hashCode, isDeprecated, setDeprecated, setDescription, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setName, setPriority, setRuleClass, setRuleSetName, setSince, start -
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
definePropertyDescriptor, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty -
Methods inherited from class net.sourceforge.pmd.lang.rule.Rule
initialize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
apply
void apply(Node target, RuleContext ctx)
-
-
-
-