You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/12/02 14:32:00 UTC

[GitHub] [incubator-kyuubi] bowenliang123 opened a new issue, #3890: [Improvement] Prefer `binPack` style for imports selector in scalafmt styling

bowenliang123 opened a new issue, #3890:
URL: https://github.com/apache/incubator-kyuubi/issues/3890

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What would you like to be improved?
   
   Update `importSelectors = singleLine` to `importSelectors = binPack` in `.scalafmt.conf`.
   
   With about 114 occurrences, the currently used `singleLine` for `importSelectors` is violated with another config `maxColumn=100` by forcing all other import from one source formated in single line no matter how long it is.
   
   For example, in  `v2Commands.scala` line 31 has the length with over 202 chars.
   And in its case, it has to importing in static way one by one , or it will break if import all the elements and methods of `import org.apache.kyuubi.plugin.spark.authz.v2Commands.CommandType.CommandType` 
   
   (https://github.com/apache/incubator-kyuubi/blob/master/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/v2Commands.scala#L31)
   
   Scalafmt doc for importselectors:
   https://scalameta.org/scalafmt/docs/configuration.html#importselectors
   
   ### How should we improve?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I can submit a PR independently to improve.
   - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
   - [ ] No. I cannot submit a PR at this time.


-- 
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: notifications-unsubscribe@kyuubi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


[GitHub] [incubator-kyuubi] bowenliang123 closed issue #3890: [Improvement] Prefer `binPack` style for importSelectors in scalafmt styling

Posted by GitBox <gi...@apache.org>.
bowenliang123 closed issue #3890: [Improvement] Prefer `binPack` style for importSelectors in scalafmt styling
URL: https://github.com/apache/incubator-kyuubi/issues/3890


-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org