Back to Browse

Why You Should Use Salesforce Code Analyzer | Salesforce Best Practices

4.6K views
Aug 26, 2024
14:47

In this video tutorial, I am going to show you how to use Salesforce Code Analyzer to ensure your code adheres to best practices, helping you identify problems earlier while you develop. This powerful tool helps you to enforce coding standards, and ensure your code is optimized as per Salesforce Standards using PMD, CPD, ESLint, RetireJS etc. You can generate a detailed static code analysis report using this tool. As pre-requisite you need SFDX CLI and Java Installed. ⏲️Timestamps 00:00 Intro 00:30 SF Best Practices 02:25 Apex Recipes 03:30 Salesforce Code Analyzer 04:28 How to Install 06:10 How to Scan 08:45 Java JDK 09:24 Execute Scan Command 10:00 Output HTML file 11:38 Apex PMD 13:40 CI CD Pipeline 14:26 Outro 📌SF Code Analyzer Link https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/setup.html 📌Installation Command sf plugins install @salesforce/sfdx-scanner 📌Command to Scan Folder sf scanner run --format html --outfile CodeAnalyzerResults.html --target force-app\main\default --projectdir force-app\main\default #salesforce #salesforcedeveloper #codescanner #bestpractice #coding #apex

Download

1 formats

Video Formats

360pmp424.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Why You Should Use Salesforce Code Analyzer | Salesforce Best Practices | NatokHD