Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

feat: add go linters to CI #249

Merged
merged 7 commits into from
Nov 1, 2021
Merged

Conversation

kevholmes
Copy link
Contributor

This commit resolves #240.

I have added a config file for golang-ci. The config is based on the one found here. This adds support for a common set of Go linters, along with the ability to add ignores to various checks and issues they flag through the .golangci.yml file.

Within the golangci-lint.yml file we are adding a GitHub Action that triggers on any pull_request to the repo. It will check out the PR's code, ensure we're using the right version of Go that we'd like, then only runs linters on new code that has been added in the PR. It does not execute against existing code (which does show failures when I run it against the entire codebase.)

@alexfedin alexfedin merged commit cbbf6aa into datreeio:main Nov 1, 2021
@kevholmes kevholmes deleted the ci/actionslinter branch November 1, 2021 15:58
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.

Add linter to the project
2 participants