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

Use golangci-lint action in github #2397

Merged
merged 1 commit into from
Feb 28, 2022
Merged

Use golangci-lint action in github #2397

merged 1 commit into from
Feb 28, 2022

Conversation

mstoykov
Copy link
Contributor

No description provided.

golangci-lint run --out-format=tab --new-from-rev "$BASEREV" ./...
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.43
only-new-issues: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, glad to see this works now. The reason we didn't use it before was that only-new-issues didn't work the same as --new-from-rev so it always showed old issues.

@imiric imiric mentioned this pull request Feb 25, 2022
60 tasks
@mstoykov mstoykov force-pushed the useGolangCILintAction branch from dffbca7 to 809942f Compare February 28, 2022 15:31
@mstoykov mstoykov marked this pull request as ready for review February 28, 2022 15:35
@github-actions github-actions bot requested review from codebien and na-- February 28, 2022 15:35
Copy link
Contributor

@codebien codebien left a comment

Choose a reason for hiding this comment

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

@mstoykov Did you assert that it fails in case of not respected rules?

Copy link
Contributor

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

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

A nitpick can be a moving comment about the golangci version closer to a version (.golangci.yml).

But apart from that awesome stuff! 👍

@na-- na-- added this to the v0.37.0 milestone Feb 28, 2022
@mstoykov
Copy link
Contributor Author

@codebien unfortunately github interfaces no longer shows it - but I had commits which failed. As a side note it not only failed the step but made annotation, which is ... less spammy than comments but also arguably harder to notice so.

But yeah it worked.

@mstoykov mstoykov merged commit cdccc9b into master Feb 28, 2022
@mstoykov mstoykov deleted the useGolangCILintAction branch February 28, 2022 16:38
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.

5 participants