Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look for per-project configuration file in parent directories #571

Closed
chutzimir opened this issue May 11, 2023 · 0 comments · Fixed by #572
Closed

Look for per-project configuration file in parent directories #571

chutzimir opened this issue May 11, 2023 · 0 comments · Fixed by #572

Comments

@chutzimir
Copy link
Contributor

chutzimir commented May 11, 2023

Can we have yamllint look for a configuration file in parent directories if it cannot find one in the current directory? This is kind of inspired by ESLint, similar to the ESLint-inspired output :). Just finding the file would be enough, even without the cascading configuration.

The fairly common use case I have is that we have a .yamllint at the top level of the repository. It works great if I use Vim to edit the files while I am at the top level. If I change into a subdirectory and edit a YAML file from there, Vim certainly shows linting errors as yamllint no longer find the .yamllint for the project.

adrienverge pushed a commit that referenced this issue May 22, 2023
Inspired be ESLint's search, it looks for configuration files in all
parent directories up until it reaches the user's home or root.

closes #571
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant