Ejemplo n.º 1
0
        private void AddClassRelatedSmells(OrganicClass organicClass, Commit commit)
        {
            var key = $"class-{organicClass.FullyQualifiedName}";

            if (!_smellHolder.ContainsKey(key))
            {
                _smellHolder[key] = new List<SmellLifetime>();
            }

            var smells = organicClass.Smells;

            foreach (var smell in smells)
            {
                AddSmellToHistory(commit.DateTime.Value, key, smell, commit);
            }
        }
Ejemplo n.º 2
0
 public void AddSmells(Commit commit, OrganicClass organicClass)
 {
     AddClassRelatedSmells(organicClass, commit);
     AddMethodRelatedSmells(organicClass,commit);
 }