Skip to content

Conversation

@gxhamster
Copy link

Introduces a new argument to -config which allows a user to pass a json config for the formatter which is not neccesarilly in the path of the files we are formatting. For now the function will use the default_style if any errors occur. This was done due to that being the pattern in the source code. I think it would be useful to know if reading a config has failed or has defaulted to a default style but, I wanted to not include that in this. Maybe in the future this can be addressed in another pull request. There has been a few occasions where I noticed that the formatter was not using the config that I was expecting.

Introduces a new argument to -config which allows a
user to pass a json config for the formatter which is not
neccesarilly in the path of the files we are formatting.
For now the function will use the default_style if any errors
occur. This was done due to that being the pattern in the source
code. I think it would be useful to know if reading a config
has failed or has defaulted to a default style but, I wanted to not
include that in this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant