forcedotcom / sfdx-code-analyzer-vscode

Salesforce Code Analyzer is a unified tool for source code analysis. Run Code Analyzer to scan multiple languages in your code and add diagnostic info to your code that describes the violations.
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

[Feature Request] Run static analysis of file open / save #16

Closed ggiralsfdc closed 6 months ago

ggiralsfdc commented 1 year ago

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like I would like code analyzer to run when I either open / save a file, to avoid having to manually run the analysis.

Describe alternatives you've considered In the case of Apex PMD, this is something that is already implemented in another extensions.

"Workaround": Running the static analysis manually.

"Urgency": Highly beneficial.

jfeingold35 commented 1 year ago

@ggiralsfdc , this is already an item on our backlog. I'll tie this to that item, and we'll make sure to let you know as soon as it's implemented.

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-14146126

jag-j commented 6 months ago

@ggiralsfdc - this feature is now available. Please refer to https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/code-analyzer-vs-code-extension.html#activate-scans-on-save-or-on-open on how to turn this feature on. Thank you!

ggiralsfdc commented 6 months ago

Works great, thank you :)