Provides functionality to perform audits on files.
The AuditService class interacts with the ctrace CLI to perform audits, parses the results, caches them, and highlights errors in the files.
| QList< AuditResult > AuditService::performAudit |
( |
const QString & |
file, |
|
|
const QString & |
options = "" |
|
) |
| |
Performs an audit on the specified file and returns the results.
This method first checks the cache for any previously computed audit results for the given file. If cached results are found, they are returned immediately. Otherwise, the method executes the ctrace CLI tool to perform the audit, parses the results, caches them for future use, and highlights any errors in the file.
- Parameters
-
| file | The path to the file to be audited. |
| options | The options to be used with the ctrace CLI. |
- Returns
- A QList of AuditResult objects containing the audit results.