Add "rake whitespace" task
This commit is contained in:
parent
b69b4acec4
commit
f3f81dabdc
7
Rakefile
7
Rakefile
@ -148,4 +148,9 @@ end
|
||||
|
||||
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
Block a user