How does it work?
The analysis of a code base will typically follow a simple workflow:
- Create a project - use a command-line tool to create a directory to contain all files associated with your project and define the commands required to access and build your source code.
- Obtain a snapshot of your code - check out a specific version of your code and build a relational database that can be analyzed using queries written in QL.
- Generate query results - run one or more queries on a snapshot of your code and use the results as part of your code review.
After a project has been created, and an initial analysis completed, you can regularly obtain new snapshots of your code, as new revisions are made, using your existing project information. Analysis of newly obtained snapshots is readily integrated into code review infrastructure and allows you to assess the impact that the revisions have on code quality.