lhotari commented on PR #24773:
URL: https://github.com/apache/pulsar/pull/24773#issuecomment-3323908843

   Thanks for the contribution @omrifried. There are checkstyle errors. 
Configuring code style and checkstyle in IntelliJ will help address those. 
Please check the guide at 
https://pulsar.apache.org/contribute/setup-ide/#configure-code-style .
   
   You can run `mvn -T 1C initialize checkstyle:check` to quickly run the check 
on the command line.
   
   ```
   [INFO] There are 17 errors reported by Checkstyle 10.14.2 with 
/home/runner/work/pulsar/pulsar/buildtools/src/main/resources/pulsar/checkstyle.xml
 ruleset.
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[26,1] 
(imports) ImportOrder: Import java.sql.Date appears after other imports that it 
should precede
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[65] 
(regexp) RegexpSingleline: Trailing whitespace
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[77] 
(sizes) LineLength: Line is longer than 120 characters (found 123).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[79] 
(sizes) LineLength: Line is longer than 120 characters (found 121).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[97] 
(sizes) LineLength: Line is longer than 120 characters (found 168).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[255,13] 
(blocks) RightCurly: '}' at column 13 should be on the same line as the next 
part of a multi-block statement (one that directly contains multiple blocks: 
if/else-if/else, do/while or try/catch/finally).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[357] 
(regexp) RegexpSingleline: Trailing whitespace
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[358] 
(regexp) RegexpSingleline: Trailing whitespace
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[360,21] 
(naming) LocalVariableName: Name 'timestamp_converted' must match pattern 
'^[a-z][a-zA-Z0-9]*$'.
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[519,21] 
(blocks) RightCurly: '}' at column 21 should be on the same line as the next 
part of a multi-block statement (one that directly contains multiple blocks: 
if/else-if/else, do/while or try/catch/finally).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[522,21] 
(blocks) RightCurly: '}' at column 21 should be on the same line as the next 
part of a multi-block statement (one that directly contains multiple blocks: 
if/else-if/else, do/while or try/catch/finally).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[524] 
(sizes) LineLength: Line is longer than 120 characters (found 122).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[528,13] 
(coding) FallThrough: Fall through from previous branch of the switch statement.
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[532] 
(sizes) LineLength: Line is longer than 120 characters (found 219).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[534,21] 
(blocks) RightCurly: '}' at column 21 should be on the same line as the next 
part of a multi-block statement (one that directly contains multiple blocks: 
if/else-if/else, do/while or try/catch/finally).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[537,21] 
(blocks) RightCurly: '}' at column 21 should be on the same line as the next 
part of a multi-block statement (one that directly contains multiple blocks: 
if/else-if/else, do/while or try/catch/finally).
   Error:  
src/main/java/org/apache/pulsar/io/jdbc/BaseJdbcAutoSchemaSink.java:[543,13] 
(coding) FallThrough: Fall through from previous branch of the switch statement.
   ```


-- 
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: commits-unsubscr...@pulsar.apache.org

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

Reply via email to