Never compromise on code quality
DevOps Advocate Jack McCurdy explains why you should prioritize testing custom code for?high code quality, and the best way to go about it:
“At some point in every org’s lifecycle comes the time for custom code. Declarative functionality will only get you so far. Whether it’s highly tailored business logic or integrations, Apex Classes and tests will find their way into your log before long. As with any part of your org, it’s critical that your custom code is tested. But, what’s more important is that the quality of your code needs to be high. Tests can be manipulated but quality can’t, and fortunately it’s easy to keep an eye on!
Whether you’re working on your own code, or have external help from a?System?Integrator (SI) or contract developer, you should be running code quality scanners. This will keep you protected by avoiding the introduction of unnecessarily complex code, security vulnerabilities, or performance issues.
PMD, a source code analyzer,?is an excellent option for this. I strongly recommend running PMD daily on code in Production, and also?as part of any new custom development in your delivery lifecycle.”
Stuck on a Salesforce DevOps topic and looking for guidance??Leave a comment below to let us know what you’d like?advice on next!
Does your Salesforce DevOps team do enough training?
Discover what a recent report revealed about the importance of regular training, and the impact on DevOps performance.
Get DevOps certified at the Gearset Summit on June 13!
Whether you’re new to DevOps, or looking to take your team to the next level, choose your certification path and follow along with our experts?live!