To handle real-world scenarios, there are several analysis options. Options can be tuned through the VisualVBDepend > Project Properties panel.
Options are then persisted into the VBDepend project file (extension .bdproj) and can be harnessed at analysis time.
The first option is the ability to choose between absolute and relative paths to folders where analyzed projects are stored.
If you choose the option value relative path, paths are relative to the folder where the VBDepend project is stored.
This option is useful when the VBDepend analysis is performed on several machines (build servers, developer machines…) where the root folder of the whole development shop can vary.
In the VisualVBDepend > Project Properties > Analysis sub-panel, you’ll find 2 interesting options beside the project name and output folder.
The Baseline for Comparison option lets define the previous analysis result on which to compare the current analysis performed (or the current analysis result loaded in interactive UI).
This is useful if you’ve defined some CQLinq rules about evolution of your code base like for example, get all new or refactored methods
(More information about this can be found here: Reporting Code Diff) :
warnif count > 0
from m in Application.Methods where
(m.WasAdded() || m.CodeWasChanged())
select new { m, m.PercentageCoverage }
Basically, here (m.WasAdded() || m.CodeWasChanged()) means was added or refactored compare to the baseline.
The baseline for comparison can be
- a particular result (like the analysis of the last release we’ve made),
- a result made N days ago
- or the last analysis result available.
Below, you'll find details to detect CQLinq result violations in the report.
The Trend Metrics Log option lets specify the frequency of logs, like at most once a day or a week