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 classAbstractApexUnitTestRuleDeprecated.Internal APIclassAbstractStatisticalApexRuleDeprecated.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 themclassApexUnitTestShouldNotUseSeeAllDataTrueRuleIt'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.classAvoidGlobalModifierRuleclassAvoidLogicInTriggerRuleclassUnusedLocalVariableRule -
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 classClassNamingConventionsRuleclassFieldDeclarationsShouldBeAtStartRuleclassFieldNamingConventionsRuleclassFormalParameterNamingConventionsRuleclassLocalVariableNamingConventionsRuleclassMethodNamingConventionsRuleclassPropertyNamingConventionsRuleclassVariableNamingConventionsRuleDeprecated. -
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 classAbstractNcssCountRuleDeprecated.Internal APIclassAvoidDeeplyNestedIfStmtsRuleclassCognitiveComplexityRuleclassCyclomaticComplexityRuleCyclomatic 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.classInaccessibleAuraEnabledGetterRuleIn the Summer '21 release, a mandatory security update enforces access modifiers on Apex properties in Lightning component markup.classMethodWithSameNameAsEnclosingClassRuleclassOverrideBothEqualsAndHashcodeRule -
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 classAvoidDmlStatementsInLoopsRuleDeprecated.classAvoidSoqlInLoopsRuleDeprecated.classAvoidSoslInLoopsRuleDeprecated.classOperationWithLimitsInLoopRuleWarn users when code that could trigger governor limits is executing within a looping construct. -
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
-