Search for default statix.toml according to xdg spec#2666
Conversation
| `$XDG_CONFIG_HOME/statix/statix.toml`. Alternatively, you | ||
| can pass the path to the `statix.toml` file on the command | ||
| line with the `--config` flag (available on `statix check`, | ||
| `statix fix`, and `statix single`). |
There was a problem hiding this comment.
I noticed that the list of subcommands, where --config flag is available, is incomplete.
|
Thank you for this contribution! Don't you think statix is a project-specific tool? |
I think some of the warnings are useful to have when editing nix files. I configured my editor to run |
|
I want you to have what you want. Just trying make sure things land correctly. Wouldn't some would claim that this is impure behavior because their linter looks for a config file outside of their project dir? |
|
As it is currently The way I see it, is that this PR let's you change the default settings of |
mightyiam
left a comment
There was a problem hiding this comment.
Okay, I agree.
Would you be willing to contribute a test for existing behavior of reading a config file, prior to this behavior change?
6c3fd07 to
d9c52d2
Compare
I never wrote filesystem integration tests like that, is there some example of that in the repo? |
|
I also modified |
|
Hrm... no, I don't think we have general integration test tooling here. Would you be interested in contributing the beginning of that? Perhaps some neat crate that provides a convenient API. |
No, not really. |
Closes oppiliappan#165
I just followed this: https://specifications.freedesktop.org/basedir/latest/