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

Add linter to CI #24

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Add linter to CI #24

merged 2 commits into from
Sep 6, 2024

Conversation

coderbirju
Copy link
Contributor

Issue #, if available:
This commit adds golangci linter and yaml lint checks to the CI.

Description of changes:

  • add .yamllint.yml
  • update go.mod

Testing done:

  • go mod tidy

  • local e2e and unit tests

  • e2e and unit test in my fork

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Arjun Raja Yogidas <[email protected]>
@coderbirju coderbirju changed the title [WIP] Add linter to CI Add linter to CI Sep 5, 2024
chews93319
chews93319 previously approved these changes Sep 5, 2024
Copy link

@chews93319 chews93319 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@pendo324 pendo324 left a comment

Choose a reason for hiding this comment

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

LGTM overall, just left a few minor comments

api/handlers/container/create.go Outdated Show resolved Hide resolved
setup-test-env.sh Outdated Show resolved Hide resolved
Signed-off-by: Arjun Raja Yogidas <[email protected]>
@@ -147,4 +147,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/cri-api v0.29.3 // indirect
lukechampine.com/blake3 v1.2.1 // indirect
)
)
Copy link
Member

Choose a reason for hiding this comment

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

nit: newline :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is a new line.. line number is still 150

Copy link
Member

Choose a reason for hiding this comment

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

I mean you're missing the newline character at the end of file. See the red marker here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh shoot, My bad. Will add this back in the next commit.

@coderbirju coderbirju merged commit 4cb929b into runfinch:main Sep 6, 2024
6 checks passed
henry118 added a commit that referenced this pull request Sep 6, 2024
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.

4 participants