Update build tooling from starter template and fix linter issues#964
Update build tooling from starter template and fix linter issues#964
Conversation
- Update Go version from 1.24.6 to 1.24.11
- Update golangci-lint to v2.8.0 with new config format
- Update gotestsum to v1.13.0
- Update Node.js version from 16.13.1 to 20.11
- Add manifest-check target to Makefile
- Use Go 1.24 features (strings.SplitSeq, slices.Contains)
- Replace interface{} with any throughout codebase
- Replace custom contains functions with slices.Contains
- Convert if-else chains to tagged switches
- Simplify embedded field selectors (c.Context.Ctx → c.Ctx)
- Use strings.Builder for efficient string concatenation
- Apply De Morgan's law simplifications
- Fix directory permissions (0755 → 0750)
- Add license headers to build files
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
nevyangelova
left a comment
There was a problem hiding this comment.
Thanks @hanzei some minor changes. Also I see tests for contains and SliceContainsString were removed but the tests for containsValue in utils_test.go were also removed. Consider keeping at least one integration test to verify the behavior with your specific use cases.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
omitempty has no effect on non-pointer struct fields in JSON encoding. Go 1.24's omitzero correctly omits the field when the struct is its zero value. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The code now uses |
|
LGTM please rebase with master for the new .nvmrc version update. |
…om CI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
make check-styleChanges
Build Tooling
.golangci.ymlto version 2 format with new linters (bidichk, makezero, modernize, unqueryvet)Makefilewith new tool versions and manifest-check targetbuild/setup.mkbuild/manifest/main.goCode Modernization
interface{}withanythroughout codebasecontains/SliceContainsStringfunctions withslices.Containsstrings.SplitSeq,fmt.Appendf)c.Context.Ctx→c.Ctx)strings.Builderfor efficient string concatenation in loopsConfig Files
.editorconfig.gitignore🤖 Generated with Claude Code