Tries to read configuration from
Tries to read configuration from
1. .scalafmt.conf in root dir of current git repo IF the following setting is enabled: project.git = true 2. .scalafmt.conf from init.commong.workingDirectory
I am happy to add alternative fallback methods for other VCS.
WARNING. Throws an exception if the .scalafmt.conf error exists but contains an error. Why? Because this method is only supposed to be called directly from main.