Is it possible to apply a different configuration for each package? #2407
Unanswered
System-Glitch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use-case: I have a package in which I would like to disallow the use of certain functions (spew dumps, prints, etc) because it is processing a ton of data and leaving a debug or print instruction in there could lead to huge money loss because of hosting service costs. However, in all other packages, I would like to still be able to use those functions because there is nothing as critical in them.
Is it possible to have a project-wide configuration (at project's root) but override it in certain packages with another configuration file specific to that package?
Doing so currently works as I'd like to using VSCode, but when running the CI or linting using
golangci-lint run
from the command line (with the project's root as working directory), it uses the project-wide config.Beta Was this translation helpful? Give feedback.
All reactions