Specify the root directory
Before an analysis with Kiuwan is executed, you must specify the root directory where the source code files are located.
That root directory is the SOURCE_DIR of the analysis.
Kiuwan scans all the files under SOURCE_DIR before running the analysis.
Set source code filters source codeKiuwan provides Source Code Filters to specify the exact fileset you want to analyze.
This mechanism is based on Include and Exclude Patterns.
Kiuwan’s include and exclude patterns are Ant-style patterns, used to create subsets of files given a certain fileset.Some example patterns might be (look at https://ant.apache.org/manual/dirtasks.html for a full reference of Ant-syntax):
How to define exclusion and inclusion patterns
When using Kiuwan Local Analyzer GUI, you can define both patterns by clicking on Advanced button and next dialog will open.
By default, you will find that there are some pre-defined exclude patterns (common patterns that usually do not contain useful code to be analyzed) that you can modify if needed.
There are +/- buttons to add/remove patterns.
To create a new one, next dialog will be open and added to the current set of patterns.
For example, if patterns.include excludeFirst, is saying "" That will exclude all the js files from SOURCE_DIR. makes nothing: the subset already does not contain any js file.
Info |
---|
There might be subtle combinations depending on the specified include/exclude patterns, so we recommend you to use exclude to reduce the resulting fileset to be analyzed. |
Table below explain