diff --git a/Rakefile b/Rakefile index 5106aa7..aa233cb 100644 --- a/Rakefile +++ b/Rakefile @@ -148,4 +148,9 @@ end task :default => :spec -task :precommit => ["spec", "spec:jruby", "spec:integration"] \ No newline at end of file +task :precommit => ["spec", "spec:jruby", "spec:integration"] + +desc 'Removes trailing whitespace' +task :whitespace do + sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;} +end \ No newline at end of file