Class ApexCRUDViolationRule
-
- All Implemented Interfaces:
-
net.sourceforge.pmd.lang.apex.ast.ApexVisitor
,net.sourceforge.pmd.lang.ast.AstVisitor
,net.sourceforge.pmd.lang.rule.Rule
,net.sourceforge.pmd.properties.PropertySource
public class ApexCRUDViolationRule extends AbstractApexRule
Finding missed CRUD checks for SOQL and DML operations.
sergey.gorbaty
-
-
Field Summary
Fields Modifier and Type Field Description public Language
language
public LanguageVersion
minimumLanguageVersion
public LanguageVersion
maximumLanguageVersion
public String
name
public String
since
public String
ruleClass
public String
ruleSetName
public String
message
public String
description
public List<String>
examples
public String
externalInfoUrl
public RulePriority
priority
public final List<PropertyDescriptor<out Object>>
propertyDescriptors
public final static PropertyDescriptor<Optional<Pattern>>
VIOLATION_SUPPRESS_REGEX_DESCRIPTOR
public final static PropertyDescriptor<Optional<String>>
VIOLATION_SUPPRESS_XPATH_DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description ApexCRUDViolationRule()
-
Method Summary
Modifier and Type Method Description void
start(RuleContext ctx)
Object
visit(ASTUserClass node, Object data)
Object
visit(ASTMethodCallExpression node, Object data)
Object
visit(ASTDmlInsertStatement node, Object data)
Object
visit(ASTDmlDeleteStatement node, Object data)
Object
visit(ASTDmlUndeleteStatement node, Object data)
Object
visit(ASTDmlUpdateStatement node, Object data)
Object
visit(ASTDmlUpsertStatement node, Object data)
Object
visit(ASTDmlMergeStatement node, Object data)
Object
visit(ASTAssignmentExpression node, Object data)
Object
visit(ASTVariableDeclaration node, Object data)
Object
visit(ASTParameter node, Object data)
Object
visit(ASTFieldDeclaration node, Object data)
Object
visit(ASTReturnStatement node, Object data)
Object
visit(ASTForEachStatement node, Object data)
Object
visit(ASTProperty node, Object data)
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, deepCopy, 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
-
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.apex.rule.AbstractApexRule
apply, visitNode
-
Methods inherited from class net.sourceforge.pmd.lang.apex.ast.ApexVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitApexNode
-
Methods inherited from class net.sourceforge.pmd.lang.rule.Rule
apply, initialize
-
Methods inherited from class net.sourceforge.pmd.properties.PropertySource
dysfunctionReason
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AstVisitor
cannotVisit, visitNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
start
void start(RuleContext ctx)
-
visit
Object visit(ASTUserClass node, Object data)
-
visit
Object visit(ASTMethodCallExpression node, Object data)
-
visit
Object visit(ASTDmlInsertStatement node, Object data)
-
visit
Object visit(ASTDmlDeleteStatement node, Object data)
-
visit
Object visit(ASTDmlUndeleteStatement node, Object data)
-
visit
Object visit(ASTDmlUpdateStatement node, Object data)
-
visit
Object visit(ASTDmlUpsertStatement node, Object data)
-
visit
Object visit(ASTDmlMergeStatement node, Object data)
-
visit
Object visit(ASTAssignmentExpression node, Object data)
-
visit
Object visit(ASTVariableDeclaration node, Object data)
-
visit
Object visit(ASTParameter node, Object data)
-
visit
Object visit(ASTFieldDeclaration node, Object data)
-
visit
Object visit(ASTReturnStatement node, Object data)
-
visit
Object visit(ASTForEachStatement node, Object data)
-
visit
Object visit(ASTProperty node, Object data)
-
-
-
-