Closed sissbruecker closed 2 years ago
I had the same idea and setup, but I would go with the formatter used in Flow and others that is defined in VaadinConventions that would have the gradle setup:
spotless {
java {
eclipse().configFile('eclipse/VaadinJavaConventions.xml')
importOrder('\\#', 'elemental', 'com.vaadin', 'com.google.gwt', '', 'java', 'javax')
}
}
I had the same idea and setup, but I would go with the formatter used in Flow and others that is defined in VaadinConventions that would have the gradle setup:
spotless { java { eclipse().configFile('eclipse/VaadinJavaConventions.xml') importOrder('\\#', 'elemental', 'com.vaadin', 'com.google.gwt', '', 'java', 'javax') } }
Done
Description
Add basic linting and formatting. Used the Google AOSP code format as that seemed closest to what we had, but we can also pick something else.