[feature request] excluding files/folder by name
afmahmuda opened this issue · 4 comments
afmahmuda commented
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
- option to ignore file by name, eg.
^.+mock$
or - option to ignore
generated
files
or - ability to ignore folders
afmahmuda commented
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 commented
Hi @afmahmuda thank you for contributing!
I would rather go with ignore_regex
where users can ignore folders or files by using a regex.
bykof commented
Thank again for contribution.
I think, with the help of yourself, this can be closed :)