Lightning-Flow-Scanner / lightning-flow-scanner-vsce

A VSCode Extension designed to pinpoint deviations from Industry Best Practices in Salesforce Flows, ensuring standards of business automation excellence.
https://marketplace.visualstudio.com/items?itemName=ForceConfigControl.lightningflowscanner
GNU Affero General Public License v3.0
29 stars 1 forks source link

In some cases, the flow scan reports unused variables even though they are used #89

Closed maximeg44 closed 3 months ago

maximeg44 commented 7 months ago

Describe the bug This is noticed when the variables are used in tags of the flow (in my opinion, this needs to be verified...).

To Reproduce I have this description of formula :

PartnerSiteUrl String {!$Setup.CustomButtonsSettings__c.URLPartner__c}
And it's use in : 
<textTemplates>
    <name>BodyForPartnerAT</name>
    <isViewedAsPlainText>true</isViewedAsPlainText>
    <text>Some text  {!CreatedDate} blablabla href=&quot;{!PartnerSiteUrl}&quot;&gt;&lt;em&gt;Partenaire&lt;/em&gt;&lt;/a&gt</text>
</textTemplates>

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image Desktop (please complete the following information):

RubenHalman commented 6 months ago

Thank you for reporting this @maximeg44. I will add this as a bug to the project and hopefully well be able to fix it soon. It looks like this issue is with the core repository and should occur also in the sfdx app. is that something youd perhaps be able to confirm as well?

RubenHalman commented 3 months ago

@maximeg44 thank you again for reporting this. it turns out this has not been resolved and occurs in both the vsce and sfdx plugin. Wewill close this and continue working on this in the thread https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/issues/69