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 ignoring files using regex pattern #117

Open
rcontreras-te opened this issue Oct 8, 2024 · 0 comments
Open

Allow ignoring files using regex pattern #117

rcontreras-te opened this issue Oct 8, 2024 · 0 comments

Comments

@rcontreras-te
Copy link

rcontreras-te commented Oct 8, 2024

We have a project that is using an older version of mockery where mocks are generated at a per file basis. (usually named mock_*.go). It would be nice to be able to ignore these files when generating docs. If they all resided in a single directory we'd be able to use --exclude-dirs but since they, much like unit tests, reside alongside the code, that isn't possible.

Is it possible to introduce another option to cover a case like this? --exclude-files=REGEX where we could add something like --exclude-files='mock_.*'?

@rcontreras-te rcontreras-te changed the title Allow ignoring files using pattern Allow ignoring files using regex pattern Oct 8, 2024
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

1 participant