sanposhiho / gomockhandler

Mr. gomockhandler is the clever and more agile manager of golang/mock (uber/mock) 👔
MIT License
105 stars 8 forks source link

Specify excluded path(s) #83

Open stouf opened 1 year ago

stouf commented 1 year ago

Being able to specify paths ignored by gomockhandler could be useful.

For example, one of my projects has a vendor folder where code from an external repository is being stored. In that folder, there are mock files. Those are not managed by gomockhandler and therefore, gomockhandler check complains about it. Given that those files come from outside of my project, I don't think having gomockhandler managing them would be a good idea.

stouf commented 1 year ago

@sanposhiho Thank you for https://github.com/sanposhiho/gomockhandler/pull/84 ❤️ This solves the case I mentioned as example above 🎉

What do you want to do with this issue? Do you think this feature would make sense now that vendor code is automatically ignored?

sanposhiho commented 1 year ago

I think it's nice-to-have feature because some users may want to ignore particular directories for some reasons. Let's keep it open.

stouf commented 1 year ago

I think it's nice-to-have feature because some users may want to ignore particular directories for some reasons. Let's keep it open.

I agree with you 👍🙂