GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — [apex] Feature/unused variable bind false positive with dynamic SOQL by tprouvot · Pull Request #4110 · pmd/pmd Conversation
|
|
Hi @adangel ! Would you have some tips on how to solve this issue ? I tried to take a look on ASTBindExpressions but not sure to fully understand how it works. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Not sure, if it's that easy. Looking at the sample code with the Rule Designer shows, that the parsed AST doesn't use ASTBindExpression. The dynamic SOQL are plain strings (ASTLiteralExpression). I'm not familiar with Apex... how can you make dynamic SOQL to be executed? Is It seems, you need to start at the end, where some string is passed to a Apex function (a MethodCallExpression), that expects a SOQL - then you know, that the passed string must be a SOQL. And from there you need to go back and find the assignment/literals that make up the SOQL-string. Then you'd need to parse the SOQL yourself to get the var names out of it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks for those guidelines, yes you're right dynamic SOQL are used with Thanks for your help ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @tprouvot , how is it going with this? Do you think we could try schedule it for the next release (in a month)? Please let us know if you need any help. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Hi @adangel, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We can leave this PR in draft until it is ready - just wanted to hear back, whether you are still working on it. Regarding Designer and JavaFX - did you see #4153 (reply in thread) ? Maybe this helps... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @tprouvot , any news on this? Can we help? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
815f665 to
a03a55b
Compare
Generated by 🚫 Danger |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…alsePositive [apex] Feature/unused variable bind false positive with dynamic SOQL pmd#4110
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[apex] UnusedLocalVariable false positive in dynamic SOQL
There was an error while loading. Please reload this page.