[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-07-08 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-876395486


   Retest this please.


-- 
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: jira-unsubscr...@kafka.apache.org

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-07-08 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-876395308


   Rebased onto the latest trunk. Also, I reflected the recent project 
structure change (i.e., `storage` → `storage/api`) by updating 
`suppressions.xml`. cc/ @cadonna @ableegoldman


-- 
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: jira-unsubscr...@kafka.apache.org

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-22 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-864782996


   Rebased onto the latest trunk. cc/ @cadonna


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-21 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-864782996


   Rebased onto the latest trunk. cc/ @cadonna


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-10 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-858588665


   @cadonna Here it is. Rebased onto the latest trunk and removed the 
formatting section from `README.md`.


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-07 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-856406538


   @cadonna Here is the update. I excluded the `core` module from this PR 
(i.e., it contains formatting configurations only, not actual formatting now) 
and opened separate issues:
   
   - [KAFKA-12910: Configure automatic formatter for 
org.apache.kafka.streams.state](https://issues.apache.org/jira/browse/KAFKA-12910)
   - [KAFKA-12911: Configure automatic formatter for 
org.apache.kafka.streams.processor](https://issues.apache.org/jira/browse/KAFKA-12911)
   
   As soon as this PR is merged, I start the issues above.


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-07 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-855860421


   @cadonna Here it is. Rebased onto the latest trunk + manually formatted 
`MockController#{legacyAlterConfigs, incrementalAlterConfigs}`. I also reviewed 
the other files and it seems no more similar cases exist.


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-04 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-853821984


   @cadonna Here it is, with the following: 1. making server-common to ignore 
import orders. 2. rebasing onto the latest trunk.
   
   +1. It seems like we can make the eclipse formatter do not insert a newline 
at the end of the class, but not removing it. (see 
[here](https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjdt%2Fcore%2Fformatter%2FDefaultCodeFormatterConstants.html).)
 So I reformatted the `core` module from the latest trunk.


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-06-03 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-853821984


   @cadonna Here it is, with the following: 1. making server-common to ignore 
import orders. 2. rebasing onto the latest trunk.
   
   +1. It seems like we can make the eclipse formatter do not insert a newline 
at the end of the class, but not removing it. (see 
[here](https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjdt%2Fcore%2Fformatter%2FDefaultCodeFormatterConstants.html).)
 So I reformatted the `core` module from the latest trunk.


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-05-26 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-849306073


   @cadonna I greatly appreciate your detailed review. Here is the update! 
:smile: 


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-05-25 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-847885818


   Rebased onto the latest trunk. cc/ @cadonna 


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-05-07 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-834368227


   @cadonna Could wou have a look now? :smiley: 


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-04-20 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-823105420


   Hi @cadonna, Here is the fix.
   
   1. Added a license header to eclipse-formatter.xml.
   2. Re-add line break formatting with 200 characters. (It resolved lots of 
formatting issues!)
   
   +1. in `ClusterTestExtensions.java`, a space is added between `default` and 
`:`, resulting `default :`; It seems like a bug in eclipse formatter. 
:disappointed:


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-04-14 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-819606373


   Hi @cadonna,
   
   Thanks again for your detailed review. Here is the update.
   
   Following your suggestions, I tried some other configurations. First of all, 
there is no way to use automatic import ordering only - without any 
configuration, the formatter formats the code with its default configuration. 
So, we have to find the least-effecting configuration.
   
   The major differences between the last draft are like the following:
   
   - **Remove line wrapping rule for 120 characters.**
   - **Comment is not formatted anymore.**
   - Remove bracing-related rules.
   
   But, I kept the other rules, like:
   
   - As of present, both of 4 space indenting and 8 space indenting are 
co-existing in the code. I configured to use 4 space indenting for its majority.
   - Several styles for the parameter formatting for the class and method 
definition also exist in the code. It is configured to the least-effecting 
configuration.
   
   Please have a look when you are free. Thanks again for the review!
   
   +1. It would be better to check how the new configuration formats streams 
module. I tested with that module, for it has so many `*.java` files. :wink:


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-04-12 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-817739351


   @cadonna Hi Bruno, Congratulations on becoming a committer.
   
   Could you have a look? :bow:


-- 
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.

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




[GitHub] [kafka] dongjinleekr commented on pull request #10428: KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

2021-03-29 Thread GitBox


dongjinleekr commented on pull request #10428:
URL: https://github.com/apache/kafka/pull/10428#issuecomment-809318479


   I think @ijuma would be the best reviewer for the new gradle configuration 
introduced here.
   
   @hachikuji @mjsax @ableegoldman @cadonna Could you have a look? The 
automatic formatter formatted `core` module here. Have a try! :smiley: 


-- 
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.

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