adrienverge/yamllint

Feature request: personal configuration (~/.yamllint)

dabrahams opened this issue · 2 comments

I'd like to change what's used by default by having a ~/.yamllint configuration file. That would be a nice feature.

Hello Dave,

You can use the environment variable $YAMLLINT_CONFIG_FILE for this purpose. You can read more at https://yamllint.readthedocs.io/en/stable/configuration.html
Apart from that, adding new default paths for configuration is not planned. There is a general effort in the Linux distributions ecosystem to put configuration files into ~/.config (see ), hence the choice made in yamllint.

Oh, I missed this in the docs!

a file named $XDG_CONFIG_HOME/yamllint/config or ~/.config/yamllint/config, if present

Sorry for the noise!