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

Adds go linters and lint workflow #135

Merged
merged 9 commits into from
Jul 7, 2023
Merged

Conversation

markylaing
Copy link
Contributor

Adds golangci-lint and revive (to ensure comments on exported methods defined against unexported receivers). Also adds a number of custom linters that we use in lxd and lxd-cloud.

I've added a "Code tests" job to the tests workflow. We can add unit tests there once we've added tests.

Also see #133 (comment)

Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
@markylaing markylaing self-assigned this Jul 7, 2023
@markylaing markylaing merged commit 2d49df4 into canonical:main Jul 7, 2023
8 checks passed
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.

None yet

2 participants