Static code analysis support

We added static code analysis capability in this release. Static code analysis automatically finds vulnerabilities and design flaws in your code, so you can ship more features with increased confidence in code quality and security standard. Static code analysis can be run in the following contexts:

  • When validating or deploying changes from Salesforce to Salesforce

  • When validating or deploying selective changes from Git to Salesforce

  • When validating or deploying incremental CI changes from Git to Salesforce

  • Schedule static code analysis execution from Git or Salesforce

In all of the above cases, static code analysis is executed for Apex classes and triggers selected or included in the deployment packages. Static code analysis supports both Classic and DX source format. This feature is available for ClickDeploy Essentials+ users only.

To execute static code analysis within the context of a deployment/validation, simply edit "Deploy Option" and enable "Run static code analysis for selected Apex classes", like below.

Screen_Shot_2020-04-19_at_1.35.20_PM.png

Once the validation completes, click on the "Static code analysis" icon, like below.

Screen_Shot_2020-04-19_at_1.37.04_PM.png

You can then review analysis details, group, filter and sort based on Class, Rule, Category and Priority.

Screen_Shot_2020-04-20_at_5.04.44_PM.png

You can also execute static code analysis independently and outside of a validation or deployment context, like so.

Screen_Shot_2020-04-19_at_2.04.49_PM.png

SFDX CLI update

We updated SFDX CLI to align with the recent Salesforce SFDX CLI release.

Updated deployment list view for team owners.

We updated deployment list views to give team owners more visibility of their team deployments.

Bug fix - empty lines in exclusion rules

As previously reported by our users, deployments failed when the exclusion list contains an empty line, like below. This bug has been fixed in this release.

Screen_Shot_2020-04-19_at_2.11.10_PM.png

Bug fix - error creating rollback deployments from history view

For deployments from Git executed outside of CI context, users were not able to create rollback deployments. This bug has been fixed in this release.

Did this answer your question?