priority | message | ref | name_value |
---|
3 | Avoid making DML operations in Apex class constructor or initializers | | |
3 | Avoid directly accessing Trigger.old and Trigger.new | | |
3 | Hardcoding Id's is bound to break when changing environments. | | |
3 | Use of non existent annotations will lead to broken Apex code which will not compile in the future. | | |
3 | Avoid empty catch blocks | | - version:
2.0
- allowCommentedBlocks:
false
- allowExceptionNameRegex:
^(ignored|expected)$
- xpath:
|
3 | Avoid empty 'if' statements | | |
3 | Avoid empty block statements. | | - version:
2.0
- reportEmptyPrivateNoArgConstructor:
true
- reportEmptyVirtualMethod:
true
- xpath:
|
3 | Avoid empty try or finally blocks | | |
3 | Avoid empty 'while' statements | | |
3 | AuraEnabled getter must be public or global if is referenced in Lightning components | | |
3 | Classes should not have non-constructor methods with the same name as the class | | |
3 | Ensure you override both equals() and hashCode() | | |
3 | Test methods must be in test classes | | |