Description
Add linting support to the build automation using golangci-lint integrated with the existing Goyek task runner in the scripts folder.
Proposed Changes
- Add a new Goyek task in
scripts/ folder (e.g., lint_task.go) that runs golangci-lint
- Create
.golangci.yml configuration file with appropriate linters enabled
- Integrate into CI/CD - ensure the lint task can be run as part of automated builds
Benefits
- Catch common bugs and style issues early
- Enforce consistent code quality across the codebase
- Automate code review for common patterns
- Easy integration with existing Goyek-based build workflow
Example Task Structure
The new Goyek task could:
- Run
golangci-lint run with appropriate flags
- Support customization via flags (e.g.,
--fix, --verbose)
- Fail the build on linting errors
- Provide clear output for CI environments
References
Description
Add linting support to the build automation using golangci-lint integrated with the existing Goyek task runner in the scripts folder.
Proposed Changes
scripts/folder (e.g.,lint_task.go) that runs golangci-lint.golangci.ymlconfiguration file with appropriate linters enabledBenefits
Example Task Structure
The new Goyek task could:
golangci-lint runwith appropriate flags--fix,--verbose)References