-
Notifications
You must be signed in to change notification settings - Fork 283
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
Import ignores from .gitignore #360
Comments
I understand the use-case. It could be done using a conf option |
@adrienverge Mutually exclusive would preclude making adjustments to the ignore directives, or overriding I'd love to, but I haven't spent many hours in Python. So not sure I could. |
@adrienverge I'm willing to implement that. Would you assign me and give me few tips? :)) Are you sure tho that you want it to be mutually exclusive with I think the lines to be modified would be: Lines 100 to 105 in 8f68248
Confirm, please? |
Being able to make adjustments makes sense, I'm not opposed to it. It's just that it's more complex to implement: more code and more tests are needed. About the option name, I'd prefer staying consistent with other configuration keys. For example something like
Great! I suggest looking carefully at a few commits that implemented new features, and reproduce the same. Note that they need documentation, test every corner case, and have a commit message that describes what they do. Please save my time and open the PR once it's 100% ready. |
…y optioncloses adrienverge#360, add support for `ignore-from-file` key option
…y optioncloses adrienverge#360, add support for `ignore-from-file` key option
…hub.com/adrienverge/yamllint/issues/360closes adrienverge#360, add support for `ignore-from-file` key option
…hub.com/adrienverge/yamllint/issues/360closes adrienverge#360, add support for `ignore-from-file` key option
Problem
Right now there is a lot of duplication between our yaml-lint ignore directives, and our .gitignore files. It would be neat if we could import from gitignore, via e.g.
import_ignore: .gitignore
.How it could work
Something like:
Since I think yaml-lint is using the same ignore format as .gitignore, maybe it's fairly easy to import? Would also allow keeping the ignore list in a separate file.
Open Questions
The text was updated successfully, but these errors were encountered: