Repository navigation
#401 Fixed all minor golangci-lint errors + integrated golangci-lint into CI/CD - #466
Merged
Merged
Conversation
added **/.DS_Store for mac
Contributor
|
I will review this one |
Yogeb-tech
requested changes
Nov 16, 2026
Yogeb-tech
left a comment
Contributor
There was a problem hiding this comment.
LGTM, just one minor change I would like
I do want to provide more context on the storage_test.go modifications. This member reached out to me about cryptic errors caused by storage_test.go. When we found out it was due to empty credentials I suggested replacing the storage.Client{} with a working fake client.
There are several reasons why I prefer this approach avad made.
- The fakestorage implementation is better because it uses a fully functional in-memory server to test the entire upload flow, whereas the empty storage.Client{} can panic and never actually tests a successful upload.
- The former implementation uses an empty recover() block that silently swallows failures, while the latter properly fails the test if an unexpected panic occurs to expose real bugs.
- The fakestorage approach also allows us to confirm that when a file is under the limit, PostObject correctly creates a GCS writer, writes the bytes, and closes it without error, whereas the first version's "Upload within limit" test can pass even if PostObject completely fails to upload anything.
- Currently this is not implemented in avad's approach, but we can make it a seperate beginner issue
Yogeb-tech
previously approved these changes
Nov 17, 2026
mikehquan19
approved these changes
Nov 26, 2026
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.
Description
Issue #401
Ran golangci-lint run, exported errors into lint.txt (did not push lint.txt). Fixed each issue present in lint.txt. Added golangci-lint into Makefile. Did the same on build.bat
Testing
Ran make check, all tests passed.
Only tested on MAC. No testing has been done on Windows or Linux.
AI Disclosure
Claude was used only at the end to help bug fix an issue with storage.Client{} in storage_test.go giving a nil error which was due to empty credentials. (No code was generated)
Checklist