Skip to content

ythirion/code-forensics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-forensics

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

Visualization

visualization examples

How to use the script

This script is a shell script tested only on Mac OS

Pre-requisites

  • Node.js - Nodejs 4 or later

Run the script

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 in gulpfile.js
  • Replace the projectName variable in package.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

You can change analysis parameters by using the ones defined here

Run the webserver

gulp webserver

Enjoy ;-)

About

Scripts to use code-forensics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published