Useless script that plots repository stats over time.
It just iterates over all the commits on a specific branch and plots the requested lines of code and/or line of comments.
This script requires:
- git
- cloc
Before all run
$ pip3 install -r requirements.txtto install the needed dependencies.
After that you can run the script
$ python3 -m plotter --repository "repository_url"and it will generate an image like this:
--repository <repository_url>- ignored if
--offlineis defined, otherwise required - Specifies the repository on which you want to use the script
- ignored if
--branch <branch_name>- optional
- Specifies another branch instead of the default one to run this script on
--offline- optional
- Specifies if the script has to use the pre-downloaded repository (found in .repo folder) or it has to clone it again using
--repositoryflag
--dir <directory_path>- optional, if not defined it will use
.repodirectory - Specifies the temporary directory to use to store the repository defined with the flag
--repository
- optional, if not defined it will use
--input_file <file_path>- optional, if defined it will override
--repositoryand--offlineflags - Specifies a custom json file to feed the script. It must has been generated during an old execution
- optional, if defined it will override
--write_output- optional
- Specifies wether the script has to write the intermediate results to output
--output_folder- required if
--write_outputis defined - Specifies the folder where the script has to write the output files
- required if
--no_preprocessing- Doesn't preprocess data. The script will plot all the commits
