Skip to content

PAMunb/static-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BDAnalisador

About

create_input.py

This script is called automatically by statis_analysis.py if no option is defined.

static_analysis.py

For each month until early 2013 and run static_analysis project over it and then generate the output folders.

Execute:

python static_analysis.py <option> -path <projects_path>

When options are not defined, it runs everything, including downloading all projects again. If options are defined, we have:

  • --reset : it will reset everything, the final input file that BDAnalisador is going to use in the end, remove everything from output folder and input folder and starts over again, but will consider that create_input.py ran previously and will try to open its result file and assume that the path for the projects also have the projects on it already.

  • --add : it will just append into the final input.csv file for BDAnalisador if it exists and will not delete anything from output and input folders, also taking into consideration that create_input.py was already executed.

  • --all : run it all, from create_input script with default values (as described before), to static analysis specific activities that include: ** for each project and each month (from April 2017 to December 2012), find the most recent commit for that month, checkout that version, count its lines of Java code and run static analysis (static2.jar) over all of them, generating output files. Static analysis activities will be described on its section.

You should take into consideration that <input_file> is the temporary input file created by create_input.py script.

Static Analysis

TBA

BDAnalisador

After downloading all projects, running static analysis and generating the final input.csv file along with output/ folder that contains all output for each project in the format, run BDAnalisador on eclipse.

TBA