Skip to content
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

Fix linter errors detected by newer versions of golangci-lint #317

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

eric-reis
Copy link
Collaborator

New versions of golangci-lint are detecting more linter errors, which have been fixed by this changeset.

Most linter errors were due to casting between different types of int encodings. For avro wireformat ID, the ID has been set as uint32 (which is being used for decoding). I did a quick search if the avro id should be int or unit, and it seems unspecified. Since we're just matching ID's (to read or write), this should pose no risk.

New versions of golangci-lint are detecting more linter errors, which
have been fixed by this changeset.

Most linter errors were due to casting between different types of int
encodings. For avro wireformat ID, the ID has been set as uint32 (which
is being used for decoding). I did a quick search if the avro id should
be int or unit, and it seems unspecified. Since we're just matching
ID's (to read or write), this should pose no risk.
@eric-reis
Copy link
Collaborator Author

Gosec is pointing out some new false positives that I missed. Will fix it

Copy link

sonarcloud bot commented Sep 9, 2024

@eric-reis
Copy link
Collaborator Author

Linting has been fixed

@eric-reis eric-reis merged commit 6cce411 into master Sep 10, 2024
5 of 6 checks passed
@eric-reis eric-reis deleted the feature/fix-linter-errors branch September 10, 2024 12:59
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