The API results for a keyword scan with patterngroup are showing 0 for filecount and matchcount:
{"id":244,"name":"Malicious Packages","keywords":[{"id":1471,"keyword":"POMtest","weight":100,"fullWord":false,"sensitive":false,"type":"FORMULA_ITEM","applications":[{"id":475358,"applicationName":"a51114_jmc_key","fileCount":0,"matchCount":0}]}
For a API call like:
https://<highlight url>/WS2/domains/domain/keyword
Solution / Explanation
The patterngroup when used in a keyword scan is a formula that only generates a true or false value so has no context for providing values for fileCount or matchCount. These are only used for keywordgroup in a keyword scan.
Patterngroup is used for checking the existence of items in all the code (like certain framework files or technlogies).
You can see in the csv result files items like the one below for the patterngroup results showing just a true or false value:
FORMULA SECTION
name;weight;sensitive;full_word;syntax
NPM;300;0;1;valid;
POMtest;100;0;0;valid;
FILE SECTION
Dat_FileName;Dat_AbortCause;NPM;POMtest;
C:/JMC/highauto/keyword_new/file1.java;None;TRUE;FALSE;
C:/JMC/highauto/keyword_new/dir1/build.gradle;None;FALSE;TRUE;
Highlight API's
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Zendesk Ticket Number
51114
Comments