OpenPeeDeeP / depguard

Go linter that checks if package imports are in a list of acceptable packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update README with information on Allow/Deny List functionality

dixonwille opened this issue · comments

It is unclear what an empty allow and deny list do. README should reflect this.

Currently it seems with golangci-lint 1.53+ that an empty allow (e.g. no depguard config) means that nothing is allowed. Pretty sure that changed from 1.52 as we didn't encounter errors before.

#49

Yes the default behavior changed. Having no depguard config, but enabling it did absolutely nothing in depguard v1.

Is there a way to allow everything by default, and only deny what's in deny list? Removing allow section doesn't help.

#70

I believe this is what you are looking for. I still want to document it before merging it in.