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

ci: Integrate GitHub Action for golangci-lint Annotations #106

Merged
merged 15 commits into from
Jan 11, 2022

Conversation

shahzadlone
Copy link
Member

@shahzadlone shahzadlone commented Jan 4, 2022

This PR adds a GitHub action check with annotations supported by golangci-lint.

For now I have set -issues-exit-code=1 (workflow shows failure if even a single lint error) and to show all lint error annotations (this works for us because we will always be in a lint-error free state). In case we want to suppress lint errors we just use nolint:xyz (also won't show up in annotations either).

@shahzadlone shahzadlone self-assigned this Jan 4, 2022
minutes). Easily can turn those on in future is needed.
@jsimnz jsimnz linked an issue Jan 5, 2022 that may be closed by this pull request
@shahzadlone shahzadlone merged commit 6765046 into develop Jan 11, 2022
@shahzadlone shahzadlone deleted the lone/ci/github-workflow-linter-annotation branch January 11, 2022 17:17
@orpheuslummis orpheuslummis mentioned this pull request Jan 29, 2022
shahzadlone added a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
…ork#106)

This PR adds a GitHub action check with annotations supported by golangci-lint.

For now I have set `-issues-exit-code=1` (workflow shows failure if even a single lint error) and to show all lint error annotations (this works for us because we will always be in a lint-error free state). In case we want to suppress lint errors we just use `nolint:xyz` (also won't show up in annotations either).
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.

Add or move the Lint Check action from CircleCi to Github Action
1 participant