Generate a cc.json with SourceMonitor
Prequisites
- Download and install SourceMonitor on Windows
- Download the latest release of codecharta-analysis
Usage
The following screenshots show a possible analysis of OpenOffice.
How to generate a .csv from SourceMonitor













How to generate a cc.json from a SourceMonitor .csv
Windows:
- Open
CMD
on Windows - Navigate to the downloaded codecharta-analysis binaries
cd A_PATH\codecharta-analysis-VERSION\bin
- Run
ccsh.bat sourcemonitorimport PATH_TO_SOURCEMONITOR_CSV -o PATH_TO_OUTPUTFILE
Unix:
- Open command line of your choice
- Navigate to the downloaded codecharta-analysis binaries
cd A_PATH/codecharta-analysis-VERSION/bin
- Run
./ccsh sourcemonitorimport PATH_TO_SOURCEMONITOR_CSV -o PATH_TO_OUTPUTFILE
If you installed codecharta-analysis globally via npm, you can just run
ccsh sourcemonitorimport PATH_TO_SOURCEMONITOR_CSV -o PATH_TO_OUTPUTFILE
You can find everything about this importer here SourceMonitorImporter