Scanit can be customized by adding tokens to the existing types or by adding new token types.
Adding tokens
Every token type has a file that lists all the tokens for which to scan. The default token files delivered with the tool are:
To add a new token for which to scan:
For example, if IRAPI function irFPlay were found to have a problem, and needed to be flagged by the scanning tool, you would update the tokens_c file (IRAPI calls are found in C programs). The format of tokens_c files is a simple three column file that has the following format:
NAME:
token weight
where NAME is fixed text and token and weight must be provided.
Note:
When adding new tokens do not leave any blank lines at the bottom of the token_type file.
Adding new types of tokens
To add a new type:
For example, if you needed to scan java source files, java might be a logical new type identifier.
Use the same format as the other token type files.