[ 
https://issues.apache.org/jira/browse/DAFFODIL-3036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021258#comment-18021258
 ] 

Olabusayo Kilo commented on DAFFODIL-3036:
------------------------------------------

On initial attempt of formatting using plugin we run into a Java error. Looks 
like the plugin relies on Java 11. Java 17 will probably be supported on the 
next release, so might be best to wait till then or try a different plugin

https://github.com/sbt/sbt-java-formatter/pull/223

> Add java style formatter plugin
> -------------------------------
>
>                 Key: DAFFODIL-3036
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-3036
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Clean Ups
>            Reporter: Steve Lawrence
>            Priority: Major
>
> We currently use sbt-scalafmt to ensure we all follow a consisetnt set of 
> coding guidelines. Even though sometimes scalafmt doesn't make the best 
> decisions, at least things are consistent.
> We should consider doing something similar for our java code so that also 
> follows a consitent standard. 
> [sbt-java-formatter|https://github.com/sbt/sbt-java-formatter] seems to do 
> something very similar to sbt-scalafmt but for Java. We should investigate if 
> this provides reasonable formatting in-line with our style guidelines or if 
> there is some other automated way ensure consistent style.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to