Github user gengliangwang commented on the issue:
https://github.com/apache/spark/pull/18471
Most changes are done by my ruby script:
```ruby
lines = `./dev/lint-scala 2>&1 | grep "before\\|after"`.split("\n")
lines.each do |line|
file, line_num=line.split(/[ ,:]/)[1,2]
if line =~ /Space before token :/
`sed -i '' '#{line_num}s/ :/:/g' #{file}`
elsif line =~ /Space before token \)/
`sed -i '' '#{line_num}s/ )/)/g' #{file}`
elsif line =~ /Space after token \(/
`sed -i '' '#{line_num}s/( /(/g' #{file}`
end
end
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]