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 Golang linter #251

Merged
merged 9 commits into from
Jun 14, 2024
Merged

Add Golang linter #251

merged 9 commits into from
Jun 14, 2024

Conversation

emlautarom1
Copy link
Contributor

Current Behavior

Currently no static analysis tools are being used as part of our build process (either local or CI).

New Behavior

As part of #215, we add golangci-lint as an additional dependency to lint Go files. The linter can be run using make lint.

Breaking Changes

This is not a breaking change since it adds a new Make target without affecting existing ones. Those who want to use the linter will need to add them to their dev enviroments

Observations

This PR also includes some fixes based on the linting results, mostly involving proper error handling (some errors were being ignored).

In the near future we want to:

  • Address all current linting issues (fix or ignore accordingly)
  • Enable linting for tests files
  • Enable linting in CI as an additional check

@emlautarom1 emlautarom1 merged commit 70b51e8 into main Jun 14, 2024
4 checks passed
@emlautarom1 emlautarom1 deleted the feature/go-lint branch June 14, 2024 12:44
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