Repository navigation
Modernize codebase for Go 1.22 and update infrastructure. - #11
Merged
Merged
Conversation
- Update Go version from 1.12 to 1.22 - Migrate CI from Travis to GitHub Actions with version matrix (1.22-1.26) - Update dependencies to modern versions (testify, zap, tally, golang.org/x/text) - Add golangci-lint configuration with strict rules - Add Dependabot for automated dependency updates - Add SECURITY.md policy - Remove deprecated io/ioutil usage - Fix bug in smallestContentLength filter (inverted error check and sort order) - Replace strings.ToLower comparisons with strings.EqualFold - Remove unused variables and constants - Fix variable naming conflicts with predeclared identifiers - Update README badges and documentation links
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.
This pull request modernizes and improves the project's development workflow, documentation, and code quality tooling. It introduces GitHub Actions for CI, updates dependencies, adds and configures linters, and enhances documentation and maintenance files. These changes help ensure better code quality, easier maintenance, and up-to-date project metadata.
CI/CD and Automation:
ci.yml) to run tests and upload coverage for multiple Go versions, replacing the previous Travis CI setup. (.github/workflows/ci.yml[1].travis.yml[2].github/dependabot.yml.github/dependabot.ymlR1-R24)Code Quality and Tooling:
golangci-lintwith a comprehensive set of linters and formatter settings to enforce code quality and style. (.golangci.yml.golangci.ymlR1-R113)Makefilewith new targets for linting, tidying, and benchmarking, and improved test coverage options. (MakefileMakefileL5-R30)Dependencies and Compatibility:
go.modgo.modL3-R21)Documentation and Metadata:
README.mdto reference GitHub Actions, Go Report Card, and pkg.go.dev instead of deprecated or outdated services. (README.md[1] [2]SECURITY.mdfile outlining the project's security policy and vulnerability reporting process. (SECURITY.mdSECURITY.mdR1-R48)Minor Code Cleanups:
internal/header/alternates.go[1] various test files [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]These updates collectively bring the project up-to-date with modern Go development practices and improve maintainability.