Тёмный

Improve Code Quality with Salesforce CLI Scanner | Developer Quick Takes 

Salesforce Developers
Подписаться 136 тыс.
Просмотров 9 тыс.
50% 1

The Salesforce CLI Scanner plug-in is a unified tool for static analysis of source code, in multiple languages (including Apex, JavaScript, Lightning Web Components, and VisualForce), with a consistent command-line interface and report output.
The scanner supports the PMD rule engine (pmd.github.io/) and ESLint (eslint.org/). The scanner also detects security vulnerabilities in your code.
Scan each code file easily by creating a shortcut for typing commands in visual studio code using VSCode tasks. An example task file for running the Salesforce CLI Scanner is at this link gist.github.co...
To learn more about the Salesforce CLI Scanner, visit the documentation link forcedotcom.gi...
Track: BeatFort - Rampant Sunrise
Music provided by Ninety9Lives
Stream / Free Download: 99l.tv/rampantsunriseYU

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@poskryakov
@poskryakov 3 года назад
Thanks, Mohith!
@u2lover10
@u2lover10 4 года назад
Hi! I'm facing problem trying to run the command to install this plug-in : I tried with " sfdx plugins:install @salesforce/sfdx-scanner" command (pointing to my project directory, my OS is Windows 10 enterprise) and got the following error: "TypeError: Cannot read property 'dim' of undefined" . ( I have my CLI installed and working properly).
@msrivastav13
@msrivastav13 4 года назад
@Cecilia Please file an issue here (github.com/forcedotcom/sfdx-scanner). You don't have to point to your project directory, just run sfdx plugins:install @salesforce/sfdx-scanner should install.
@u2lover10
@u2lover10 3 года назад
@@msrivastav13 thanks Mohit! I have finally installed this plug in, no need to raise an issue.
@Rohit-gv2yw
@Rohit-gv2yw 3 года назад
Hi How to view the scan results in GUI
@appu2322
@appu2322 3 года назад
Thanks a lot Mohit. The Video is very detailed, and it is a very well documented Code Scan Plugin. Can you please give me some references for using this in Ci/CD Pipeline? We want to add code scan to our current Ci/CD Pipeline on Azure, and I am looking for these types of scans (to check before deployments). Thanks for your help in advance. Cheers, Mahesh
@msrivastav13
@msrivastav13 3 года назад
Take a look at this PR github.com/trailheadapps/apex-recipes/pull/35/files. It shows how you can add it to your CI/CD pipeline. You just need to make sure you install Java in the CI/CD pipeline and then install plugin and run the scan command
@manojdega
@manojdega 2 года назад
Thanks Mohith
@SarGuP
@SarGuP 4 года назад
How to setup our own rules
@msrivastav13
@msrivastav13 4 года назад
Here is how you can set your own rules forcedotcom.github.io/sfdx-scanner/en/custom-rules/author/
@msrivastav13
@msrivastav13 4 года назад
If you need to disable certain standard rules check the instructions here github.com/forcedotcom/sfdx-scanner/issues/246
@SalesforceUSA
@SalesforceUSA 3 года назад
Good video
Далее
Custom Apex PMD Rules
45:15
Просмотров 3,5 тыс.
codeLive: Improve Apex Code Quality with PMD
58:57
Просмотров 7 тыс.
10 Salesforce Apex Best Practices You NEED to Know!
11:21