You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/08/06 11:13:29 UTC

[GitHub] [shardingsphere] sandynz opened a new pull request, #19929: Add and update IDEA code style schema

sandynz opened a new pull request, #19929:
URL: https://github.com/apache/shardingsphere/pull/19929

   Purpose:
   - Easier to import code style schema in IDEA
   - Keep unified code style on original files even users format code; Java importing and line breaks might be changed if code style is not set up
   - Easier to update code style schema
   
   Process:
   1. Download [shardingsphere-settings.jar]( https://shardingsphere.apache.org/community/data/shardingsphere-settings.jar ) and unzip, import `codestyles/Default _1_.xml`
   2. Do some testing for a long time
   3. Export it as `code-style-idea.xml`
   
   Changes proposed in this pull request:
   - Add `code-style-idea.xml`
   
   Changes in `code-style-idea.xml` comparing to original `codestyles/Default _1_.xml`:
   
   1, Add `LINE_SEPARATOR` option, limit to `\n`
   <img width="348" alt="图片" src="https://user-images.githubusercontent.com/42492540/183245762-e5022906-7137-46e8-9f4c-1f0818e590df.png">
   
   2, Remove `<option name="KEEP_LINE_BREAKS" value="false" />` and `<option name="KEEP_MULTIPLE_EXPRESSIONS_IN_ONE_LINE" value="true" />`.
   
   Settings is like this:
   <img width="403" alt="图片" src="https://user-images.githubusercontent.com/42492540/183246239-ae05819e-7d32-41be-ade0-6149bdfd4d2d.png">
   
   Since it might remove line breaks:
   
   1) One line might exceed maximum length.
   e.g.
   <img width="1216" alt="图片" src="https://user-images.githubusercontent.com/42492540/183245922-4bca91d4-2e2d-448d-a835-c092999a8ea8.png">
   
   2), Several lines into one line. e.g.
   <img width="1360" alt="图片" src="https://user-images.githubusercontent.com/42492540/183246180-0afc192e-0637-4e45-b3e3-45b8a08832d3.png">
   
   
   


-- 
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@shardingsphere.apache.org

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


[GitHub] [shardingsphere] terrymanu merged pull request #19929: Add and update IDEA code style schema

Posted by GitBox <gi...@apache.org>.
terrymanu merged PR #19929:
URL: https://github.com/apache/shardingsphere/pull/19929


-- 
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@shardingsphere.apache.org

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


[GitHub] [shardingsphere] codecov-commenter commented on pull request #19929: Add and update IDEA code style schema

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #19929:
URL: https://github.com/apache/shardingsphere/pull/19929#issuecomment-1207201453

   # [Codecov](https://codecov.io/gh/apache/shardingsphere/pull/19929?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#19929](https://codecov.io/gh/apache/shardingsphere/pull/19929?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (92aea3d) into [master](https://codecov.io/gh/apache/shardingsphere/commit/df832a4793d2789655c06992ae5846d9b4f767ee?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (df832a4) will **not change** coverage.
   > The diff coverage is `n/a`.
   
   ```diff
   @@            Coverage Diff            @@
   ##             master   #19929   +/-   ##
   =========================================
     Coverage     60.19%   60.19%           
     Complexity     2423     2423           
   =========================================
     Files          3875     3875           
     Lines         54997    54997           
     Branches       7695     7695           
   =========================================
     Hits          33107    33107           
     Misses        19047    19047           
     Partials       2843     2843           
   ```
   
   
   
   :mega: Codecov can now indicate which changes are the most critical in Pull Requests. [Learn more](https://about.codecov.io/product/feature/runtime-insights/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
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@shardingsphere.apache.org

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