Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

'rake whitespace:cleanup' task

  • Loading branch information...
commit 0c6c4af277cc1217920490d7fb803e1640fadb90 1 parent 42aa6dc
@jamiew jamiew authored Diaspora committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/tasks/whitespace.rake
View
7 lib/tasks/whitespace.rake
@@ -0,0 +1,7 @@
+namespace :whitespace do
+ desc 'Removes trailing whitespace'
+ task :clean do
+ sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
+ end
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.