priority | message | ref | name_value |
---|---|---|---|
3 | Avoid really long classes (lines of code) | category/apex/design.xml/ExcessiveClassLength |
|
3 | Avoid long parameter lists | category/apex/design.xml/ExcessiveParameterList |
|
3 | This class has too many public methods and attributes | category/apex/design.xml/ExcessivePublicCount |
|
3 | The constructor has an NCSS line count of {0} | category/apex/design.xml/NcssConstructorCount |
|
3 | The method {0}() has an NCSS line count of {1} | category/apex/design.xml/NcssMethodCount |
|
3 | The type has an NCSS line count of {0} | category/apex/design.xml/NcssTypeCount |
|
3 | The {0} ''{1}'' has a Standard Cyclomatic Complexity of {2}. | category/apex/design.xml/StdCyclomaticComplexity |
|
3 | Too many fields | category/apex/design.xml/TooManyFields |
|
3 | Deeply nested if..else statements are hard to read | category/apex/design.xml/AvoidDeeplyNestedIfStmts |
|
3 | category/apex/design.xml/CyclomaticComplexity |
| |
3 | Avoid operations in loops that may hit governor limits | category/apex/performance.xml/OperationWithLimitsInLoop |
|
3 | Avoid directly accessing Trigger.old and Trigger.new | category/apex/errorprone.xml/AvoidDirectAccessTriggerMap |
|
3 | Avoid logic in triggers | category/apex/bestpractices.xml/AvoidLogicInTrigger |
|
3 | Avoid using global modifier | category/apex/bestpractices.xml/AvoidGlobalModifier |
|
category/apex/errorprone.xml/AvoidNonExistentAnnotations |
| ||
3 | Avoid hardcoding ID's | category/apex/errorprone.xml/AvoidHardcodingId |
|
3 | Class names should begin with an uppercase character | category/apex/codestyle.xml/ClassNamingConventions |
|
3 | Method name does not begin with a lower case character. | category/apex/codestyle.xml/MethodNamingConventions |
|
3 | Classes should not have non-constructor methods with the same name as the class | category/apex/errorprone.xml/MethodWithSameNameAsEnclosingClass |
|
3 | category/apex/codestyle.xml/FieldNamingConventions |
| |
3 | category/apex/codestyle.xml/FormalParameterNamingConventions |
| |
3 | category/apex/codestyle.xml/LocalVariableNamingConventions |
| |
3 | category/apex/codestyle.xml/PropertyNamingConventions |
| |
3 | Apex unit test classes should have at least one System.assert() or assertEquals() or AssertNotEquals() call | category/apex/bestpractices.xml/ApexUnitTestClassShouldHaveAsserts |
|
3 | @isTest(seeAllData=true) should not be used in Apex unit tests because it opens up the existing database data for unexpected modification by tests | category/apex/bestpractices.xml/ApexUnitTestShouldNotUseSeeAllDataTrue |
|
category/apex/bestpractices.xml/ApexUnitTestClassShouldHaveRunAs | |||
3 | Apex classes should declare a sharing model if DML or SOQL is used | category/apex/security.xml/ApexSharingViolations |
|
3 | Apex callouts should use encrypted communication channels | category/apex/security.xml/ApexInsecureEndpoint |
|
3 | category/apex/errorprone.xml/ApexCSRF |
| |
3 | Apex classes should safely redirect to a known location | category/apex/security.xml/ApexOpenRedirect |
|
3 | Apex classes should escape variables merged in DML query | category/apex/security.xml/ApexSOQLInjection |
|
3 | Apex classes should escape Strings obtained from URL parameters | category/apex/security.xml/ApexXSSFromURLParam |
|
3 | Apex classes should escape addError strings | category/apex/security.xml/ApexXSSFromEscapeFalse |
|
3 | Apex Crypto should use random IV/key | category/apex/security.xml/ApexBadCrypto |
|
3 | Validate CRUD permission before SOQL/DML operation | category/apex/security.xml/ApexCRUDViolation |
|
3 | Calling potentially dangerous method | category/apex/security.xml/ApexDangerousMethods |
|
3 | Consider using named credentials for authenticated callouts | category/apex/security.xml/ApexSuggestUsingNamedCred |
|
3 | Avoid using if statements without curly braces | category/apex/codestyle.xml/IfStmtsMustUseBraces |
|
3 | Avoid using 'while' statements without curly braces | category/apex/codestyle.xml/WhileLoopsMustUseBraces |
|
3 | Avoid using 'if...else' statements without curly braces | category/apex/codestyle.xml/IfElseStmtsMustUseBraces |
|
3 | Avoid using 'for' statements without curly braces | category/apex/codestyle.xml/ForLoopsMustUseBraces |
|
3 | Avoid empty catch blocks | category/apex/errorprone.xml/EmptyCatchBlock |
|
3 | Avoid empty 'if' statements | category/apex/errorprone.xml/EmptyIfStmt |
|
3 | Avoid empty 'while' statements | category/apex/errorprone.xml/EmptyWhileStmt |
|
3 | Avoid empty try or finally blocks | category/apex/errorprone.xml/EmptyTryOrFinallyBlock |
|
3 | Avoid empty block statements. | category/apex/errorprone.xml/EmptyStatementBlock |
|
3 | category/apex/codestyle.xml/OneDeclarationPerLine |
| |
3 | Document classes, methods, and properties that are public or global. | category/apex/documentation.xml/ApexDoc |
|
3 | category/apex/bestpractices.xml/DebugsShouldUseLoggingLevel |
|