Example #1
0
        public HierarchicalDataContext AnalyzeCodeAge()
        {
            // Get summary of all files
            var summary = _history.GetArtifactSummary(_extendedDisplayFilter, new NullAliasMapping());

            var builder          = new CodeAgeBuilder();
            var hierarchicalData = builder.Build(summary, _metrics);
            var dataContext      = new HierarchicalDataContext(hierarchicalData);

            dataContext.AreaSemantic   = Strings.LinesOfCode;
            dataContext.WeightSemantic = Strings.CodeAge_Days;
            return(dataContext);
        }
Example #2
0
        public HierarchicalDataContext AnalyzeCodeAge()
        {
            LoadHistory();
            LoadMetrics();

            // Get summary of all files
            var summary = _history.GetArtifactSummary(Project.Filter, new HashSet <string>(_metrics.Keys));

            var builder          = new CodeAgeBuilder();
            var hierarchicalData = builder.Build(summary, _metrics);

            return(new HierarchicalDataContext(hierarchicalData));
        }