A quickly-put-together tool to do a preliminary exploration of directories full of code. Displays the code content of each directory as a tree map. Standing on the shoulders of giants like cloc, pandas and plotly's treemaps.
- cloc
- poetry to manage the python installation (pandas and plotly)
After clone
cd code-explorer
poetry install
And then
./explore-driver.sh /path/to/the/repo/to/analyse
Plotly should open a browser tab showing a treemap that you can explore.
An html file ending in ...cloc.db.html
should be created
in the current directory.
- poetry might be overkill
- it would be nice to click on a file on the treemap and open it, but alas this requires effort