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

[feature request] excluding files/folder by name #20

Closed
afmahmuda opened this issue Nov 11, 2022 · 4 comments
Closed

[feature request] excluding files/folder by name #20

afmahmuda opened this issue Nov 11, 2022 · 4 comments

Comments

@afmahmuda
Copy link

problem
currently, only ignore non .go files and _test.go files
suppose i have _mock file inside the same folder, said mock will pollute the the whole graph

how to reproduce

generate mock file inside target folder / sub folder

proposed solution

  1. option to ignore file by name, eg. ^.+mock$
    or
  2. option to ignore generated files
    or
  3. ability to ignore folders
@afmahmuda
Copy link
Author

before going to implementation, i would like to ask your opinion on which solution will be better, of if you have a better solution

@bykof
Copy link
Owner

bykof commented Nov 11, 2022

Hi @afmahmuda thank you for contributing!
I would rather go with ignore_regex where users can ignore folders or files by using a regex.

@afmahmuda
Copy link
Author

PR created here
#21

@bykof
Copy link
Owner

bykof commented Nov 13, 2022

Thank again for contribution.
I think, with the help of yourself, this can be closed :)

@bykof bykof closed this as completed Nov 13, 2022
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