Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(ci): add linting + fix existing errors #99

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

everettraven
Copy link
Collaborator

Description

  • Adds golangci-lint linting into the makefile and adds a github actions job for linting
  • Fixes existing linting errors

Motivation

Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! One minor nit.

.github/workflows/sanity.yaml Outdated Show resolved Hide resolved
.golangci.yaml Outdated Show resolved Hide resolved
pkg/controllers/core/catalog_controller.go Show resolved Hide resolved
pkg/controllers/core/catalog_controller.go Outdated Show resolved Hide resolved
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Copy link
Member

@m1kola m1kola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@everettraven now that you updated local-prefixes in .golangci.yaml you need to update imports (see goimports failures).

Other than that - everything looks good.

Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Copy link
Member

@m1kola m1kola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@everettraven everettraven merged commit 748a2a4 into operator-framework:main Jun 20, 2023
6 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.

Add a GitHub Action for linting
4 participants