You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried to resolve this issue yourself first?
Yes
Bug Description
Unexpected Internal Execution Error. The code analyzer engine appears unable to verify both the source and sync. It is failing to handle a reference to metadata for custom settings
Have you tried to resolve this issue yourself first?
Yes
Bug Description
Unexpected Internal Execution Error. The code analyzer engine appears unable to verify both the source and sync. It is failing to handle a reference to metadata for custom settings
Output / Logs
See attached sfge.log file.
sfge.log
Vertex 1:
BeginLine=103, DefiningType=PLM:
Map<String, PDLM__Configuration__c> configs = PDLM__Configuration__c.getAll();
Vertex 2:
BeginLine=118, DefiningType=PLM:
public static string getConfiguration(string name, string defaultValue) {
PDLM__Configuration__c cfg = PDLM__Configuration__c.getValues(name);
return String.isNotBlank(cfg?.PDLM__Value__c) ? cfg.PDLM__Value__c : defaultValue;
}
Steps To Reproduce
sf scanner run dfa --format csv --outfile CodeAnalyzerDFA5.csv --target ./ --projectdir ./ --category Security
Expected Behavior
the sfdx-scanner must be able to handle metadata references without generating an internal error
Operating System
MacOS Sonoma 14.7.1
Salesforce CLI Version
@salesforce/cli/2.39.6 darwin-arm64 node-v20.18.1
Code Analyzer Plugin (@salesforce/sfdx-scanner) Version
@salesforce/sfdx-scanner (4.7.0)
Java Version
java version 18.0.1.1 2022-04-22
Additional Context (Screenshots, Files, etc)
note: the latest code analyzer v5.0.0-alpha.3 did not flag this issue. It only happens with sfdx-scanner 4.2 and 4.7
Workaround
NA
Urgency
Moderate
The text was updated successfully, but these errors were encountered: