-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add current module name to allow list #66
Comments
I like the idea of being explicit over implicit. I agree with Idez in this scenario, magic configs cropping up is not good. The reason why go.mod is allowed when no allow list is supplied is because this package assumed without an allow everything was allowed. Once you specified allowed, it went into a strict mode situation where everything is denied. I just recently pushed a change to V2 that lets you determine the mode Strict vs Lax. I have not tagged it yet as I am trying to cleanup a few Issues before I do. I can compromise by adding a |
I am going to add the $gomodname variable in as I have a few other issues that require additional variables. That will be in the v2.2.0 release |
I'll second that having depguard on for a package with 0 dependency yet getting
when that's the module path is weird the default config should at least work for "0 dep" packages where 0 deps still means the test package can test the module |
* adding files from fortio/dflag#50 where this was initially done * update package path * update test to use canonical package name, add to readme * adding workflows * refactor/inline some type conversion and start returning error lists instead of logging. also testing that linter ci should fail * fix lints * removed dependency on assert and log, 0 dependencies now * add back depguard - yet OpenPeeDeeP/depguard#66. add note about go version(s)
More info in PR for golangci/golangci-lint#4098
The text was updated successfully, but these errors were encountered: