-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to run w/o eliminating level 3 errors [ sf scanner run dfa ] #1619
Comments
I did a drag and drop of the files but I do not see that they were added. I am attaching here |
Hmm I an unable to reproduce on my macOs machine. @wjanderson Do you have access to another machine to see if you can reproduce this on a non-windows machine. I just downloaded your
I see zero violations. Maybe there are more files in your project that I'd need to reproduce? |
I see in your CodeAnalyzerDFA.csv results that an internal error is what is being violated. The
directive only works to suppress a specific rule. I'm not sure if this will work but it is worth trying to do
instead. If that doesn't work, then I'm afraid there is most likely no engine directive for the Salesforce Graph Engine to suppress these errors. These errors that you are seeing are known issues (gaps really) in the Salesforce Graph Engine: #1497 Given the complexity of these types of issues, they may take quite a while for our team to eventually fix unfortunately. So for now you'll just need to ignore these errors. |
The engine directive can only silence specific rules, and the internal execution error is being thrown during the construction of paths rather than during the execution of a specific rule. So unfortunately the directive won't be enough to silence the error here. However, on inspecting the error message, it mentions line 234 of
could fix the problem. If that doesn't work, then we're going to need to figure out how to reproduce the error in a simpler codebase, so we can do some debugging. |
Thanks @stephen-carter-at-sf , As to the suggestion of @jfeingold35 (Josh) as to your reference I had gone back and disabled the class ( ApplicationACCC ) altogether when I saw it mentioned in the DefineType. But that had no affect. I will try your suggestion on unchaining the methods, Thanks. |
@stephen-carter-at-sf & @jfeingold35 All good now! Thanks. For Reference:
Django Unchained:
|
Whoops ... Closing |
Have you tried to resolve this issue yourself first?
Yes
Bug Description
I have 14 errors w/ level 3 . Unable to disable level 3 errors per statement: add an engine directive to skip the path
Cannot get the scanner to ignore the errors. Went back an validated.
Output / Logs
No response
Steps To Reproduce
Expected Behavior
Eliminate errors from output
Operating System
Windows 11 ( Version 10.0.22631)
Salesforce CLI Version
@salesforce/cli/2.37.4 win32-x64 node-v20.10.0
Code Analyzer Plugin (@salesforce/sfdx-scanner) Version
4.5.0
Java Version
penJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)
Additional Context (Screenshots, Files, etc)
No response
Workaround
Have not found a way to sidestep the problem.
Urgency
Moderate
The text was updated successfully, but these errors were encountered: