-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enable all disabled checks options in golangci-lint, see #2786 #2789
Comments
If this is up for grabs I can work on this, remaining checks to enable that I can see seem to be
|
In terms of priority I would start exactly in the opposite order that you listed :) |
…#2786) Updates #2789 Signed-off-by: Bogdan Drutu <[email protected]>
Downgrade the priority for this, we can do it in phase 3 |
I tried enabling
My take from this is that if we enable this we should only enable it for specific modules/packages that are interesting because we expect their structs to be used a lot of times (so, for example, it may be interesting to enable this just for |
I have tried to renew the experiment from @mx-psi with #9133 and have the same results. Most of the code is not in the hot path. The fieldalignment linter picked up interesting improvements on the protobuf code, however, and this might be something to pursue down the road in the opentelemetry-proto project. I have reviewed and tried to apply this to different parts of the code, but I don't see a good target for improvement because none of the code is in the hot path. I identified that the generated protobuf code could use a boost. Unfortunately protobuf values the ordering of fields. Traces:
Metrics:
Logs:
In the meantime, I move that we remove the TODO in the .golangci-lint.yaml file and close the task to revisit the fieldalignment linter. |
#9174 is open to follow up. |
**Description:** Removes a TODO for the fieldalignment linter, offering a reasoning to keep it disabled moving forward. **Link to tracking Issue:** Fixes #2789
In #2786 we started to enable some of the disabled checks in golangci-lint, but not all of them are enabled because of the amount of work required.
This is a tracking issue to ensure all are enabled.
The text was updated successfully, but these errors were encountered: