Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (23 sloc) 0.491 kB
files = Dir["**/*"]
ignored_files = [
/log\/.*/,
]
files.delete_if do |file|
if File.directory?(file)
true
else
ignored_files.any? do |condition|
if condition.is_a?(String)
file == condition
else
condition.match(file)
end
end || false
end
end
for file in files - ignored_files
if File.file?(file)
lines = File.readlines(file).map { |line| line.gsub(/^\s+$/, "\n") }
File.open(file, "w+") { |f| f.write(lines.join) }
end
end
Jump to Line
Something went wrong with that request. Please try again.