Emerge is a browser-based interactive codebase and dependency visualization tool for many different programming languages. It supports some basic code quality and graph metrics and provides a simple and intuitive way to explore and analyze a codebase by using graph structures.
MIT License
818
stars
49
forks
source link
Fix git metrics for languages that don't support entity parsing #41
Summary
Check that
currentGraph
is definedaddGitMetricToFileNodes
before attempting to update git metrics.Languages that don't support entity parsing attempted to update the graph with git metrics before
currentGraph
was defined on initial rendering.Issue
To reproduce the issue (before this change), you can run the following in this repo:
using the following
py-template.yaml
(default python config withgit_directory
andgit-metrics
added):Opening the output html (i.e.
emerge-output/html/emerge.html
) won't display a graph due to the error described above.