Permalink
Browse files

only process text like files for fixme processing

  • Loading branch information...
1 parent bd771db commit b98ad3737a2475911d13647cca9888d1e803e8ce @copiousfreetime committed Feb 6, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 tasks/default.rake
View
5 tasks/default.rake
@@ -149,10 +149,9 @@ end
desc "Look for fixmes and report them"
task :fixme => 'manifest:check' do
This.manifest.each do |file|
- next if file == File.basename( __FILE__ )
-
+ next if file == __FILE__
+ next unless file =~ %r/(txt|rb|md|rdoc|css|html|xml|css)\Z/
puts "FIXME: Rename #{file}" if file =~ /fixme/i
-
IO.readlines( file ).each_with_index do |line, idx|
prefix = "FIXME: #{file}:#{idx+1}".ljust(42)
puts "#{prefix} => #{line.strip}" if line =~ /fixme/i

0 comments on commit b98ad37

Please sign in to comment.