Repository navigation
chore(go): enable unparam linter and remove dead struct fields - #1276
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
November 17, 2026 05:39
Contributor
There was a problem hiding this comment.
Code Review
This pull request enables the unparam linter in .golangci.yaml and performs a comprehensive cleanup across the codebase to resolve violations. The changes primarily involve removing unused function parameters (such as ctx in various mapper and utility functions), unused struct fields, unused helper structs (like countingReader), and unnecessary error return values that were consistently nil. All corresponding call sites and unit tests have been updated to match the refactored signatures. There are no review comments provided, and the changes look clean and correct, so I have no additional feedback.
kyasbal
force-pushed
the
push-wlwkzqlxxppv
branch
from
November 17, 2026 06:28
68a2208 to
0b0bce9
Compare
Go Quality Report (
|
| Metric | Result |
|---|---|
| Changed Scope | 24 prod file(s), 13 test file(s), 64 unit(s) |
| Patch Coverage | 78.9% (45/57 lines) |
| Mutation Score | 100.0% (5/5 killed, 0 survived) |
Commit: 4ead40c45331 · Cloud Build Logs
kyasbal
force-pushed
the
push-wlwkzqlxxppv
branch
from
November 18, 2026 01:40
1eacec3 to
4ead40c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable the
unparamlinter in.golangci.yamlfor production Go code and clean up unused function parameters, constant return values, and write-only or unread struct fields across backend packages.Excluding
_test.gofiles fromunparamavoids false positives on test stubs and interface mock implementations that intentionally return constantnilerrors, while keeping production helper signatures free of dead parameters and redundant error returns.