sbt / sbt-java-formatter

An sbt plugin for formating Java code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement better config file location

ktoso opened this issue · comments

Given:

subproject/formatting.xml
subproject/src/...      // should use `/subproject/formatting.xml`
src/...                 // should use `/formatting.xml`
formatting.xml 
other/src/...           // should use `/formatting.xml`

This way a sub project can be formatted using a different style if needed.

I think that these should all fall back to the base project/formatting.xml

So, order of attempts:

a/project/formatting.xml
a/formatting.xml
project/formatting.xml
formatting.xml

?

Sorry for all the confusion @ktoso, I think that I'm mixing up the settings in the plugin with the settings in our project. Yes, that would probably be a good order.

No prob, thanks for chiming in :)