Skip to content

Conversation

@jluhrsen
Copy link

Summary

  • Adds Makefile with lint and lint-fix targets
  • Adds hack/lint.sh script for containerized linting using golangci-lint v1.64.8
  • Adds GitHub Actions workflow to automatically run make lint on PRs and pushes to main
  • Follows the same approach used in ovn-kubernetes for consistency

Test plan

  • Verified Makefile targets work correctly
  • GitHub Actions workflow will run on this PR to validate the setup

Assisted-by: Claude Code

This adds linting support using golangci-lint v1.64.8 via containerized execution,
matching the approach used in ovn-kubernetes. Includes a Makefile with lint and
lint-fix targets, a GitHub Actions workflow for automated PR checks, and the necessary
hack/lint.sh script.

This work was patterned mostly from what is in
ovn-kubernetes/ovn-kubernetes.git except that the github actions will
now use 'make lint' instead of a github marketplace action so that the
lint in CI will match exactly what a dev would do locally

Assisted-by: Claude Code
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
@jluhrsen
Copy link
Author

If anyone is looking at this, I created this as part of a learning session with "Claude Code"

I think it's close to what we would want and may make sense to let in. The lint job fails with the repo at this state because there is no golang. here is a job on my fork showing what that looks like, but I think if current dev work rebased on top of this we would then have linting working for everyone.

or we can throw this away and do it later.

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.

1 participant