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

Possible to ignore based on folder (for instance /test)? #31

Closed
noozo opened this issue Jan 14, 2022 · 2 comments · Fixed by #30
Closed

Possible to ignore based on folder (for instance /test)? #31

noozo opened this issue Jan 14, 2022 · 2 comments · Fixed by #30

Comments

@noozo
Copy link
Contributor

noozo commented Jan 14, 2022

Hi,

I found several points in my project where when i have something like
def some_func(arg1 \\ 1, arg2 \\ 2, arg3 \\ 3)

And if only use some_func(1, 2, 3) in a test function (like a fixture or something like that) i get an unused warning. I was wondering if mix_unused is working for test code as well and, if not, if there is a way to ignore an entire folder (not modules, but really a folder).

Thanks!

@hauleth
Copy link
Owner

hauleth commented Jan 16, 2022

Not yet, but #30 should allow filtering on metadata via 2-art function and then such functionality will be possible.

@hauleth
Copy link
Owner

hauleth commented Feb 2, 2022

It will be now possible via binary predicate function. It is not documented yet, but you may track #33 for documentation. Such predicate accepts MFA as a first argument and metadata as 2nd. Metadata will contain information about path to the file.

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

Successfully merging a pull request may close this issue.

2 participants