Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clear whitespace

  • Loading branch information...
commit db68a33fe896c141ba85bee63cef9791ed66c009 1 parent 7521c92
@bittersweet bittersweet authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 bin/bugspots
  2. +3 −3 lib/bugspots/scanner.rb
View
4 bin/bugspots
@@ -11,12 +11,12 @@ ARGV << '--help' if ARGV.empty?
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: bugspots /path/to/git/repo"
-
+
# Option: Set Depth
opts.on('-d', '--depth [depth]', 'depth of log crawl (integer)') do |d|
options[:depth] = d.to_i
end
-
+
# Option: Set Timestamp Display
opts.on('--display-timestamps', 'show timestamps of each identified fix commit') do |dt|
options[:display_timestamps] = true
View
6 lib/bugspots/scanner.rb
@@ -9,9 +9,9 @@ def self.scan(repo, depth = 500)
repo = Grit::Repo.new(repo)
fixes = []
- repo.commits('master', depth).each do |commit|
+ repo.commits('master', depth).each do |commit|
if commit.message =~ /fix(es|ed)|close(s|d)/
- files = commit.stats.files.map {|s| s.first}
+ files = commit.stats.files.map {|s| s.first}
fixes << Fix.new(commit.short_message, commit.date, files)
end
end
@@ -30,4 +30,4 @@ def self.scan(repo, depth = 500)
return fixes, spots
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.