Add "rake whitespace" task
This commit is contained in:
parent
b69b4acec4
commit
f3f81dabdc
5
Rakefile
5
Rakefile
|
@ -149,3 +149,8 @@ end
|
||||||
task :default => :spec
|
task :default => :spec
|
||||||
|
|
||||||
task :precommit => ["spec", "spec:jruby", "spec:integration"]
|
task :precommit => ["spec", "spec:jruby", "spec:integration"]
|
||||||
|
|
||||||
|
desc 'Removes trailing whitespace'
|
||||||
|
task :whitespace do
|
||||||
|
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
|
||||||
|
end
|
Loading…
Reference in New Issue