Uses of Class
net.sourceforge.pmd.lang.apex.rule.AbstractApexRule
-
-
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule Modifier and Type Class Description classAbstractApexUnitTestRuleDo special checks for apex unit test classes and methodsclassAbstractStatisticalApexRuleDeprecated.seeStatisticalRule -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.bestpractices
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.bestpractices Modifier and Type Class Description classApexAssertionsShouldIncludeMessageRuleclassApexUnitTestClassShouldHaveAssertsRuleApex unit tests should have System.assert methods in themclassApexUnitTestMethodShouldHaveIsTestAnnotationRuleclassApexUnitTestShouldNotUseSeeAllDataTrueRuleIt's a very bad practice to use @isTest(seeAllData=true) in Apex unit tests, because it opens up the existing database data for unexpected modification by tests.classAvoidGlobalModifierRuleclassAvoidLogicInTriggerRule -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.codestyle
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.codestyle Modifier and Type Class Description classClassNamingConventionsRuleclassFieldNamingConventionsRuleclassFormalParameterNamingConventionsRuleclassLocalVariableNamingConventionsRuleclassMethodNamingConventionsRuleclassPropertyNamingConventionsRuleclassVariableNamingConventionsRuleDeprecated. -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.design
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.design Modifier and Type Class Description classAbstractNcssCountRuleAbstract superclass for NCSS counting methods.classAvoidDeeplyNestedIfStmtsRuleclassCognitiveComplexityRuleclassCyclomaticComplexityRuleCyclomatic complexity rule using metrics.classExcessiveClassLengthRuleThis rule detects when a class exceeds a certain threshold.classExcessiveLengthRuleclassExcessiveNodeCountRuleThis is a common super class for things which shouldn't have excessive nodes underneath.classExcessiveParameterListRuleThis rule detects an abnormally long parameter list.classExcessivePublicCountRuleRule attempts to count all public methods and public attributes defined in a class.classNcssConstructorCountRuleNon-commented source statement counter for constructors.classNcssMethodCountRuleNon-commented source statement counter for methods.classNcssTypeCountRuleNon-commented source statement counter for type declarations.classStdCyclomaticComplexityRuleImplements the standard cyclomatic complexity ruleclassTooManyFieldsRule -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.documentation
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.documentation Modifier and Type Class Description classApexDocRule -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.errorprone
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.errorprone Modifier and Type Class Description classApexCSRFRuleConstructor and init method might contain DML, which constitutes a CSRF vulnerabilityclassAvoidHardcodingIdRuleclassAvoidNonExistentAnnotationsRuleApex supported non existent annotations for legacy reasons.classMethodWithSameNameAsEnclosingClassRule -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.performance
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.performance Modifier and Type Class Description classAvoidDmlStatementsInLoopsRuleclassAvoidSoqlInLoopsRuleclassAvoidSoslInLoopsRule -
Uses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.security
Subclasses of AbstractApexRule in net.sourceforge.pmd.lang.apex.rule.security Modifier and Type Class Description classApexBadCryptoRuleFinds encryption schemes using hardcoded IV, hardcoded keyclassApexCRUDViolationRuleFinding missed CRUD checks for SOQL and DML operations.classApexDangerousMethodsRuleFlags dangerous method calls, e.g.classApexInsecureEndpointRuleInsecure HTTP endpoints passed to (req.setEndpoint) req.setHeader('Authorization') should use named credentialsclassApexOpenRedirectRuleLooking for potential Open redirect via PageReference variable inputclassApexSharingViolationsRuleFinds Apex class that do not define sharingclassApexSOQLInjectionRuleDetects if variables in Database.query(variable) is escaped with String.escapeSingleQuotesclassApexSuggestUsingNamedCredRuleFlags usage of http request.setHeader('Authorization',..) and suggests using named credentials which helps store credentials for the callout in a safe place.classApexXSSFromEscapeFalseRuleFinds all .addError method calls that are not HTML escaped on purposeclassApexXSSFromURLParamRuleDetects potential XSS when controller extracts a variable from URL query and uses it without escaping first
-