adrienverge / yamllint

A linter for YAML files.
GNU General Public License v3.0
2.79k stars 265 forks source link

Feature request: personal configuration (~/.yamllint) #669

Closed dabrahams closed 2 months ago

dabrahams commented 2 months ago

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

adrienverge commented 2 months ago

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.

dabrahams commented 2 months ago

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!