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

Allow users to specify path to .gitignore to allow for mass exclude #265

Open
guillaume-troadec opened this issue Nov 2, 2023 · 1 comment

Comments

@guillaume-troadec
Copy link

guillaume-troadec commented Nov 2, 2023

Hi,

Thanks for developing this tool, it's great and we use it every day :)

Description

I was wondering whether you could implement a feature that allows for users to specify the filepath to .gitignore, and yamlfix uses .gitignore to identify which files to include/exclude.

This would work nicely with big projects which already have a .gitignore, and would wish to avoid manually specifying each specific directory to include/exclude via the CLI.

Thanks!

@guillaume-troadec guillaume-troadec changed the title Specific path to .gitignore to allow for mass exclude Allow users to specify path to .gitignore to allow for mass exclude Nov 2, 2023
@lyz-code
Copy link
Owner

lyz-code commented Nov 3, 2023

Hi @guillaume-troadec thanks for taking the time to open the issue. I think this could be added by creating a configuration (disabled by default) called --use-gitignore or something similar.

Sadly right now I only find time to maintain yamlfix, so I won't be able to develop this feature myself. However I'm open to discuss the implementation if you want to address it yourself, and to review the pull requests

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

2 participants