Skip to content

Add golangci-lint integration to Goyek build scripts #129

@spachava753

Description

@spachava753

Description

Add linting support to the build automation using golangci-lint integrated with the existing Goyek task runner in the scripts folder.

Proposed Changes

  1. Add a new Goyek task in scripts/ folder (e.g., lint_task.go) that runs golangci-lint
  2. Create .golangci.yml configuration file with appropriate linters enabled
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions