NDepend.API Documentation
LogTrendMetrics(IAnalysisResult,ICompareContext,DateTime) Method
NDepend.Analysis Namespace > ExtensionMethodsProjectAnalysis Class > LogTrendMetrics Method : LogTrendMetrics(IAnalysisResult,ICompareContext,DateTime) Method
This analysisResult on which trend metrics values are computed.
The NDepend.CodeModel.ICompareContext object used to execute code rules and trend metrics that require to be run in diff mode.
The time at which trend metrics values are persisted, typically System.DateTime.System.DateTime.Now or IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Date.
Force log trend metrics values for this analysisResult, with the possibility to execute code rules and trend metrics that require to be run in diff mode.
Syntax

Parameters

analysisResult
This analysisResult on which trend metrics values are computed.
compareContext
The NDepend.CodeModel.ICompareContext object used to execute code rules and trend metrics that require to be run in diff mode.
logDateTime
The time at which trend metrics values are persisted, typically System.DateTime.System.DateTime.Now or IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Date.
Exceptions
ExceptionDescription
An error occurred while persisting in the trend store.
Remarks
Trend metrics are extracted from code queries found in IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Project.NDepend.Project.IProject.CodeQueries and IAnalysisResult.IAnalysisResult.RulesExtractedFromCode.
Rules are extracted from the same code queries sets, for computation of code metrics: # Rules, # Rules Violated, # Rules Violations.
Trend metrics values are logged into the trend metrics store of the project IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Project.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProjectAnalysis Class
ExtensionMethodsProjectAnalysis Members
Overload List