ARCHIVED this is part of my older code tools - see https://kornysietsma.github.io/polyglot-tools-docs/ for latest stuff.
A Clojure library designed to convert cloc's yml format to flare nested json for use in d3 visualisations
cloc2flare
takes the output of cloc --by-file --yaml
on standard input, and
produces a JSON Flare file as standard output.
This is easiest if you have an uberjar so you don't need to understand clojure and leiningen -
you can download a cloc2release.jar
file from this project's releases page
at https://github.com/kornysietsma/cloc2flare/releases and then:
cloc . --by-file --yaml --quiet | java -jar cloc2flare.jar > output.json
This requires cloc
which you can generally install from a package manager
on your system, or the source is at https://github.com/AlDanial/cloc
See also https://github.com/kornysietsma/toxic-code-explorer-demo where there will eventually be documentation on how this all fits together
Copyright © 2018 Kornelis Sietsma
Licensed under the Apache License, Version 2.0 - see LICENSE.txt for details
This really needs tests - it's very simple, it should be easy to test!