Config: Detect user config using os.path.expanduser()
Instead of `$HOME`, since the former works when `$HOME` is not set. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828033#10
This commit is contained in:
@@ -16,7 +16,7 @@ following locations (by order of preference):
|
||||
|
||||
- ``.yamllint`` in the current working directory
|
||||
- ``$XDG_CONFIG_HOME/yamllint/config``
|
||||
- ``$HOME/.config/yamllint/config``
|
||||
- ``~/.config/yamllint/config``
|
||||
|
||||
Finally if no config file is found, the default configuration is applied.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user