Checking your code in Salesforce Developer Console

Once installed and configured, your Quality Clouds Live Check for Salesforce extension lets you check and improve your code with best practices from our rulesets. 

You can check the following types of CEs: Classes, Triggers, Pages, Components, Objects, Reports.

Checking code

Every time you wish, you can run a check on the file you are working on.

→ To check your code

  1. Once in the Salesforce Developer Console open the file you want to check. 
  2. Right-click on the file, and choose Run Live Check. Once the check is finished, you get a notification.
  3. Check the issues detected in the Chrome extension window. 


Working on issues

For all the issues found in the check you can consult the following:

  • Line of code
  • Issue type and link to best practice
  • Impact area
  • Time to fix 


→ To work on issues

  1. You can filter by impact area to see issues of most importance to you, for example High severity issues for Security
  2. For each of the issue, you can check more about it by clicking the i icon in the Issue type column. This opens our documentation site with best practice information. 
  3. Choose the issue you want to work on, and check the line of code on which the issue occurs.
  4. You can now go back to your Developer Console file and fix the issue as needed. 

Working with issues from Quality Gates

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

See more about how to set up OLD Quality Gates.

Once you have set up a Quality Gate on your org, you'll see that the issues reported are divided into two categories: 

  • Issues- all the new issues added after you have baselined your platform. These issues should be fixed before you promote the update set. 
  • Baseline issues - all the existing issues you have decided to accept as your existing technical debt.

If there are any new issues detected, the Quality Gates is alerting you that these should be fixed first by displaying the following message: 

Quality Gate does not allow code with any new issues. Make sure you solve these first.

Extension for

Chrome


What's here


Related content

Rules and rulesets

Connecting Salesforce

Salesforce rules




Last modified on Jan 26, 2021