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

Ignore internal package #19

Open
mirecl opened this issue Aug 20, 2022 · 2 comments
Open

Ignore internal package #19

mirecl opened this issue Aug 20, 2022 · 2 comments

Comments

@mirecl
Copy link

mirecl commented Aug 20, 2022

Hello, how to ignore internal package always?

@ashanbrown
Copy link
Owner

ashanbrown commented Aug 20, 2022

Hi @mirecl , are you saying your goal is to forbid using an entire package? You could use a wildcard pattern like 'fmt\.*' to forbid use of any identifiers from a specific package. forbidigo is pretty simple and doesn't look at the import list. That does sound like it could be a useful feature though. What package are you looking to forbid?

@ashanbrown
Copy link
Owner

I was wondering if you've also taken a look at https://revive.run/r#imports-blacklist, which deals in whole packages. I realize your original message asks about "ignoring" rather than "forbidding" a package, so I realize I may not be understanding what you're suggesting.

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