-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
Enhance nogo
to provide warnings and export diagnostics
#4273
Comments
Have you tried running a build with Structured output could be toggled via a flag or output group, which would be quite unintrusive. What kind of output are you looking for? |
Yes, I usually do that. The challenge with a large codebase is that I want to start blocking only new instances of the X analyzer rather than fixing everything at once, allowing for a gradual transition to a blocking state. This particular feature could potentially be implemented through other systems rather than rules_go, as it would require access to the repository's previous state.
I believe I proposed a structure a while back in #3388. However, if we're open to making it a part of nogo itself, I can create a formal proposal. |
Correct, now this only makes sense if it doesn’t block the build. #4102 already covers blocking linters, and I believe this is enough for most blocking linters. The real reason to expose diagnostic information is for post-build actions like collecting metrics and blocking new instances of issues in the same package, which would need |
Description
Currently,
nogo
inrules_go
does not provide warnings or export complete diagnostics per analyzer. This makes it difficult to collect meaningful insights and enforce best practices without failing the build.Problem
nogo
strictly fails on errors, which prevents collecting non-blocking diagnostics.Proposed Idea
Instead of failing immediately, we could introduce a mechanism to:
nogo
to collect and log issues instead of immediately failing.Questions for Discussion
warning
mode innogo
?rules_go
, or would an external tool be better suited for post-processing?The text was updated successfully, but these errors were encountered: