zhouyifan279 opened a new pull request #1391:
URL: https://github.com/apache/incubator-kyuubi/pull/1391


   ### _Why are the changes needed?_
   #1383 
   
   As IntelliJ IDEA's `Optimize Imports` result does not meet rules in 
`scalastyle-config.xml`,  currently developers have to arrange package imports 
manually.
   
   In this PR, we introduce a `.scalafmt.conf` file to solve the problem.   
   It works as follows: 
   1. Set scala code style formatter to `scalafmt`. 
   2. Execute `Reformat Code`
   3. IDEA picks up configurations in  `.scalafmt.conf` and format both code 
lines and imports.
   
   We also formatted all historical scala codes.
   
   ### _How was this patch tested?_
   - [ ] Add some test cases that check the changes thoroughly including 
negative and positive cases if possible
   
   - [ ] Add screenshots for manual tests if appropriate
   
   - [x] [Run 
test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests)
 locally before make a pull request
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to