- If --config-str is specified (and tempConfigPath is defined), this returns the path to a temporary file.
- If --config-str is specified (and tempConfigPath is defined),
this returns the path to a temporary file.
- If both tempConfigPath and config are None,
this return the path to .scalafmt.conf on the working directory.
A path to a configuration file
Parse the scalafmt configuration and try to encode it to ScalafmtConfig.
Parse the scalafmt configuration and try to encode it to ScalafmtConfig.
If --config-str is specified, this will parse the configuration string specified by --config-str.
Otherwise, a contents of configuration file specified by configPath will be parsed.
If --config-str is not specified and configuration file is missing, this will return the default configuration