Replies: 5 comments
-
I am unable to reproduce this issue. I have in the same folder these two files: hello.yaml
.yamllint
Opening the hello.yaml file reports no error from ALE:
Removing the rules inside the .yamllint file causes ALE to report the missing --- at the beginning of the file. This shows that yamllint is properly reading the configuration file.
Relevant configuration:
|
Beta Was this translation helpful? Give feedback.
-
Any idea what I can do to figure out why this problem is happening for me? I am not having similar problems with other file types. |
Beta Was this translation helpful? Give feedback.
-
Not much I can do to help. Check the version of yamllint, ALE, and Vim/Neovim you are using. In my case I have:
|
Beta Was this translation helpful? Give feedback.
-
According to the yamllint doc, .yamllint file must be placed in the current working directory. https://yamllint.readthedocs.io/en/stable/configuration.html#configuration So if your .yamllint file is not in the same directory as the cwd of Vim, yamllint will ignore the config file. I could reproduce the issue in this situation. |
Beta Was this translation helpful? Give feedback.
-
I hit this one. I had to start |
Beta Was this translation helpful? Give feedback.
-
Information
VIM version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 17 2021 09:58:59)
Included patches: 1-3444
Operating System: CentOS Linux release 7.9.2009 (Core)
yamllint version: 1.26.0
What went wrong
Settings in
.yamllint
(also tried renaming it to ,yamllint.yaml
) in same directory as an edited YAML file seem to be ignored. When I runyamllint
manually from the same directory, the settings are used.The contents of my config file are
Reproducing the bug
Created a
.yamllint
file with the contents above and then edited a .yaml file in the same directory that did not have an initial "---" line.Ale reports
document-start: missing document start "---"
for the first line of the edited yaml file (disabled in config).Running
yamllint <filename>
in the same directory from the shell does not report that error.:ALEInfo
Beta Was this translation helpful? Give feedback.
All reactions