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

"ignore-from-file" not taking into account gitignore exceptions #585

Open
drAlberT opened this issue Aug 4, 2023 · 0 comments
Open

"ignore-from-file" not taking into account gitignore exceptions #585

drAlberT opened this issue Aug 4, 2023 · 0 comments

Comments

@drAlberT
Copy link

drAlberT commented Aug 4, 2023

Using ignore-from-file .gitignore seems to wrongly handle the case like the following:

.*
!.checkmake
!.editorconfig
!.gitignore
!.gitlab/
!.gitlab-ci.yml
!.gitleaks.yml

With the above config no error is reported in the .gitlab-ci.ymlfile, while it works perfectly removing ignore-from-file .gitignore directive in .yamllint.yml

Could be the problem here? Isn't expected to have lines instead of the entire file?
https://github.com/adrienverge/yamllint/blob/a68c3aa69e298ea20bdfb51ac388d5bfc4c347aa/yamllint/config.py#L113C78-L113C78

@drAlberT drAlberT changed the title ignore-from-file ignoring git exceptions "ignore-from-file" not taking into account gitignore exceptions Aug 4, 2023
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

No branches or pull requests

1 participant