CAST HIGHLIGHT - Keyword Scan - Results are incorrect when using parameter scope="code"

When using parameter scope="code" the results are incorrect.  HL reports 0 findings when checking for the keyword "IS NULL" where as it should have reported 1 occurrence when using the sample of a Java code snippet.

 

Details

It will return only 0 occurrence if it is passed as a string, either in single quotes or double quotes
e.g. while(variable = 'IS NULL') { statement n, statement n+1; }
or while(variable = "IS NULL") { statement n, statement n+1; }

Instead the expected behavior is to get occurrence if the searched pattern is in code instruction (meaning part of the code is as shown below)
e.g. while(IS_NULL) { statement n, statement n+1; }

 

Ticket

27566

 

Have more questions? Submit a request

Comments

Powered by Zendesk