Specifying Files and Directories
File specifiers are expressions that allow you to pass a long list of files or a directory to Fortify Static Code Analyzer
A set of software security analyzers that scan source code for violations of security-specific coding rules and guidelines for a variety of languages. The rich data provided by the language technology enables the analyzers to pinpoint and prioritize violations so that fixes can be fast and accurate. using wildcard characters. Fortify Static Code Analyzer recognizes two types of wildcard characters: a single asterisk character (*) matches part of a file name, and double asterisk characters (**) recursively matches directories. You can specify one or more files, one or more file specifiers, or a combination of files and file specifiers.
<files> | <file_dir_specifiers>
Note: File specifiers do not apply to C, C++, or Objective-C++.
The following table describes examples of file and directory specifiers.
| File / Directory Specifier | Description |
|---|---|
|
|
Matches all files in the named directory and any subdirectories or the named directory when used for a directory parameter |
|
|
Matches any file named |
|
|
Matches any file with the specified extension found in the named directory. |
|
|
Matches any file with the specified extension found in the named directory or any subdirectories. |
|
|
Matches all directories and files found in the named directory that have |
|
|
Matches all directories and files with the name |
|
|
Matches all files in the current directory tree that have a |
|
|
Matches all files in any Matches:
Does not match (
|
Note: Windows and many Linux shells automatically expand parameters that contain the asterisk character (*), so you must enclose file-specifier expressions in quotes. Also, on Windows, you can use the backslash character (\) as the directory separator instead of the forward slash (/).