Skip to content

Conversation

majst01
Copy link
Contributor

@majst01 majst01 commented Sep 9, 2025

Hi @gabor-boros

me again, had some spare time and spent it to fix some obvious linter complains.
Please have a look if your time allows.

Reason for the change
golangci-lint staticcheck complains that in variable declarations, the lefthand side is not necessary, fix this.

Description
A clear and concise description of what did you changed and why.

Code examples
If applicable, add code examples to help explain your changes.

Checklist

References
Anything else related to the change e.g. documentations, RFCs, etc.

@gabor-boros
Copy link
Member

@majst01 Sorry, extremely late reply! I'm going to review the PR this week!

@majst01
Copy link
Contributor Author

majst01 commented Oct 7, 2025

@majst01 Sorry, extremely late reply! I'm going to review the PR this week!

Hi @gabor-boros no worries :-)

@gabor-boros
Copy link
Member

gabor-boros commented Oct 15, 2025

@majst01 I started reviewing the PR, but golangci-lint still shows many errors:

master branch

132 issues:
* errcheck: 37
* govet: 18
* ineffassign: 2
* staticcheck: 50
* unused: 25

this branch

114 issues:
* errcheck: 37
* govet: 18
* ineffassign: 2
* staticcheck: 32
* unused: 25

I was using golangci-lint has version 2.5.0 built with go1.25.1 from ff63786 on 2025-09-21T18:53:13Z.


Before going on, I wanted to check-in to see if you wanted to fix all staticcheck errors or only the unnecessary type annotations?

@majst01
Copy link
Contributor Author

majst01 commented Oct 15, 2025

@majst01 I started reviewing the PR, but golangci-lint still shows many errors:

master branch

132 issues:
* errcheck: 37
* govet: 18
* ineffassign: 2
* staticcheck: 50
* unused: 25

this branch

114 issues:
* errcheck: 37
* govet: 18
* ineffassign: 2
* staticcheck: 32
* unused: 25

I was using golangci-lint has version 2.5.0 built with go1.25.1 from ff63786 on 2025-09-21T18:53:13Z.

Before going on, I wanted to check-in to see if you wanted to fix all staticcheck errors or only the unnecessary type annotations?

I started with a small list of same issues, otherwise the PR would be to big.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants