Scripts to use code-forensics
code-forensics
is a great tool developped by Silvio Montanari based on Adam Tornhill's book Your Code as a Crime Scene.
Visit the documentation here
This script is a shell script tested only on Mac OS
- Node.js - Nodejs 4 or later
sh run-analysis.sh --projectName=<your-project-name> --repositoryPath=<path-to-the-repo-to-analyze>
It will :
- Remove folders from previous analysis :
tmp
,output
- Replace the
repositoryPath
variable ingulpfile.js
- Replace the
projectName
variable inpackage.json
- Install dependencies from
package.json
- Run each type of analysis with default values :
- dateFrom :
first commit date
- dateTo :
today
- targetFile :
/
- timeSplit :
end of month
- dateFrom :
You can change analysis parameters by using the ones defined here
gulp webserver
Enjoy ;-)