Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Enable golangci-lint #62

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Enable golangci-lint #62

merged 3 commits into from
Oct 11, 2024

Conversation

puerco
Copy link
Contributor

@puerco puerco commented Oct 9, 2024

This PR enables golangci-lint in the repo. The PR has 3 commits:

  1. Adds the linter configuration
  2. Fixess all linting errors in the code
  3. Adds a presubmit workflow to enforce the linter in new PRs.

Signed-off-by: Adolfo García Veytia (puerco) [email protected]

.golangci.yaml Outdated
sections:
- standard
- default
- prefix(github.com/protobom/protobom)
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, gotta change this one

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 need to improve my copy+paste chops

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! 👍

puerco added 3 commits October 9, 2024 20:19
Signed-off-by: Adolfo García Veytia (puerco) <[email protected]>
This commit fixes all the linter warnings in the codebase.

Signed-off-by: Adolfo García Veytia (puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (puerco) <[email protected]>
@puerco puerco merged commit c579fbe into main Oct 11, 2024
3 checks passed
@puerco puerco deleted the linter branch October 11, 2024 20:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants