Bugspot - Bug Prediction Algorithm
Inspired by the blog post of the Google Engineering Team: Bug Prediction at Google
Usage
Build using maven
1. mvn package 2. cp default.properties your-project.properties
Edit the properties file:
repository.type=svn repository.url=http://redmine.rubyforge.org/svn/trunk repository.user=anonymous respository.password= # exclude files matching this regex analyzer.exclude = test\/ # only include files matching this regex analyzer.include = \.rb$ # filter chain filters = com.github.r1j0.bugspot.filter.MessageFilter,\ com.github.r1j0.bugspot.filter.RedmineFilter # filter commit messages filter.MessageFilter.commit = bug|fix(es)?|close(s|d) # when a commit references a ticket, only consider those commits # that are classified in the "Defect" tracker filter.RedmineFilter.ticket = #(\\d+) filter.RedmineFilter.base = http://www.redmine.org/issues/ filter.RedmineFilter.tracker = Defect # if you need authentication # filter.RedmineFilter.username = user # filter.RedmineFilter.password = password
Run the analyzer:
java -jar target/BugSpot-0.0.1-SNAPSHOT.jar -c redmine.properties -r1:HEAD