Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
BugSpot - find buggy hotspots in your (currently only svn) repository
Java
branch: master

This branch is even with r1j0:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
src
.classpath
.gitignore
.project
README.md
default.properties
pom.xml

README.md

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
Something went wrong with that request. Please try again.