Skip to content

Modernize codebase for Go 1.22 and update infrastructure. - #11

Merged
fr33r merged 2 commits into
masterfrom
freer/modernize
Jun 20, 2026
Merged

fr33r merged 2 commits into
masterfrom
freer/modernize

Conversation

@fr33r

@fr33r fr33r commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

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:

  • Added a GitHub Actions workflow (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]
  • Introduced Dependabot configuration to automate dependency updates for Go modules and GitHub Actions workflows. (.github/dependabot.yml .github/dependabot.ymlR1-R24)

Code Quality and Tooling:

  • Added and configured golangci-lint with a comprehensive set of linters and formatter settings to enforce code quality and style. (.golangci.yml .golangci.ymlR1-R113)
  • Enhanced the Makefile with new targets for linting, tidying, and benchmarking, and improved test coverage options. (Makefile MakefileL5-R30)

Dependencies and Compatibility:

  • Updated Go version requirement to 1.22, and refreshed all major dependencies to more recent versions for improved security and compatibility. (go.mod go.modL3-R21)

Documentation and Metadata:

  • Updated badges and documentation links in README.md to reference GitHub Actions, Go Report Card, and pkg.go.dev instead of deprecated or outdated services. (README.md [1] [2]
  • Added a SECURITY.md file outlining the project's security policy and vulnerability reporting process. (SECURITY.md SECURITY.mdR1-R48)

Minor Code Cleanups:

These updates collectively bring the project up-to-date with modern Go development practices and improve maintainability.

- 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
Copilot finished work on behalf of fr33r June 20, 2026 06:06
@fr33r
fr33r merged commit d4cf974 into master Jun 20, 2026
5 checks passed
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