Skip to content

feat: add golangci-lint configuration with pre-commit hooks to lint code #116

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

Merged
merged 6 commits into from
Jul 29, 2024

Conversation

kklimonda-cl
Copy link
Contributor

@kklimonda-cl kklimonda-cl commented Jul 23, 2024

Description

This adds a set of linters managed with golangci-lint, as well as pre-commit
configuration that allows to run them locally as part of the edit-commit-push cycle.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

@kklimonda-cl kklimonda-cl requested a review from michalbil July 23, 2024 09:11
@kklimonda-cl kklimonda-cl changed the title Add Go linters and pre-commit hooks to ensure they are executed feat: Add Go linters and pre-commit hooks to ensure they are executed Jul 23, 2024
@kklimonda-cl kklimonda-cl changed the title feat: Add Go linters and pre-commit hooks to ensure they are executed feat: add Go linters and pre-commit hooks to ensure they are executed Jul 23, 2024
@kklimonda-cl kklimonda-cl changed the title feat: add Go linters and pre-commit hooks to ensure they are executed feat: add go linters and pre-commit hooks to ensure they are executed Jul 23, 2024
@kklimonda-cl kklimonda-cl changed the title feat: add go linters and pre-commit hooks to ensure they are executed feat: add golangci-lint configuration with pre-commit hooks to lint code Jul 23, 2024
@@ -21,15 +33,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: "1.21"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should match updated go version, right?

@@ -51,7 +63,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
with:
go-version: '1.21'
go-version: "1.21"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@kklimonda-cl kklimonda-cl merged commit 96509aa into main Jul 29, 2024
3 checks passed
@kklimonda-cl kklimonda-cl deleted the feat-add-linters branch July 29, 2024 07:05
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.

2 participants